Function at 0x50d980
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x38
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x28], esi
mov edx, dword [esi]
mov eax, dword [esi + 4]
movzx ecx, byte [esi + 0x30]
mov dword [esp + 0x40], eax
sub ecx, 1
mov edi, dword [edx + 8]
mov eax, dword [edx]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x20], edx
mov eax, dword [edi + 0x74]
mov dword [esp + 0x44], eax
lea eax, [edi + 0xc]
mov dword [esp + 0x24], edi
mov dword [esp + 0x34], ecx
js 0x50e37a
jmp 0x50d9d4
mov edx, dword [esp + 0x20]
imul eax, ecx, 0x58
add esi, 0x300
add esi, eax
mov dword [esp + 0x14], esi
cmp byte [esi + 0x39], 0xb6
mov ebx, dword [esi + 0x4c]
mov dword [esp + 0x1c], ebx
je 0x50dd0d
mov eax, dword [esp + 0x28]
xor ebx, ebx
cmp byte [eax + 0x33], 2
jne 0x50db84
movzx eax, byte [eax + 0x30]
dec eax
cmp ecx, eax
jne 0x50db84
mov ecx, dword [esp + 0x1c]
test dword [ecx + 0x2c], 0x200
je 0x50db84
mov eax, dword [ecx + 0x20]
test byte [eax + 0x38], 0x80
je 0x50db84
movzx ebp, word [ecx + 0x1e]
test ebp, ebp
je 0x50db84
mov eax, dword [eax + 8]
cmp word [eax + ebp*2], 0x24
jl 0x50db84
mov eax, dword [edx + 0x2c]
inc eax
xor esi, esi
mov dword [esp + 0x18], eax
mov ecx, dword [esp + 0x14]
lea ebx, [eax + esi]
mov edx, dword [ecx + 8]
mov ecx, dword [edi + 0x74]
cmp dword [edi + 0x78], ecx
jg 0x50da79
push ebx
push esi
push edx
mov edx, 0x5d
mov ecx, edi
call fcn.00499040
add esp, 0xc
jmp 0x50daa4
lea eax, [ecx + 1]
mov dword [edi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edi + 0x70]
mov edi, dword [esp + 0x24]
mov dword [eax + ecx*4], 0x5d
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], esi
mov dword [eax + ecx*4 + 0xc], ebx
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esp + 0x18]
inc esi
cmp esi, ebp
jl 0x50da53
mov ecx, dword [esp + 0x20]
lea eax, [ebp + 1]
mov edx, 0x1a
add dword [ecx + 0x2c], eax
mov ecx, 0x17
mov eax, dword [esp + 0x14]
mov ebx, dword [edi + 0x74]
cmp byte [eax + 0x39], 4
mov esi, dword [eax + 8]
cmove edx, ecx
cmp dword [edi + 0x78], ebx
jg 0x50daec
push dword [esp + 0x18]
mov ecx, edi
push 0
push esi
call fcn.00499040
add esp, 0xc
mov ebx, eax
jmp 0x50db1f
lea eax, [ebx + 1]
mov dword [edi + 0x74], eax
lea ecx, [ebx + ebx*4]
mov eax, dword [edi + 0x70]
mov byte [eax + ecx*4], dl
xor edx, edx
mov word [eax + ecx*4 + 2], dx
mov dword [eax + ecx*4 + 8], edx
mov edx, dword [esp + 0x18]
mov dword [eax + ecx*4 + 4], esi
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
mov byte [eax + ecx*4 + 1], 0
mov eax, dword [edi]
cmp byte [eax + 0x57], 0
jne 0x50db36
mov eax, dword [edi + 0x70]
lea ecx, [ebx + ebx*4]
mov byte [eax + ecx*4 + 1], 0xfd
mov dword [eax + ecx*4 + 0x10], ebp
mov esi, dword [esp + 0x14]
mov ecx, dword [edi + 0x74]
mov edx, dword [esi + 0x40]
cmp dword [edi + 0x78], ecx
jg 0x50db5b
push 0
push edx
push 1
mov edx, 0xb
mov ecx, edi
call fcn.00499040
add esp, 0xc
jmp 0x50db84
lea eax, [ecx + 1]
xor ebp, ebp
mov dword [edi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edi + 0x70]
mov dword [eax + ecx*4], 0xb
mov dword [eax + ecx*4 + 4], 1
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], ebp
mov dword [eax + ecx*4 + 0x10], ebp
mov ecx, dword [edi + 0xc]
mov edx, dword [esi + 0x18]
not edx
mov eax, dword [ecx + 0x3c]
add eax, dword [ecx + 0x38]
jns 0x50dba1
push edx
mov edx, edi
call fcn.00499860
add esp, 4
jmp 0x50dbaa
mov ecx, dword [ecx + 0x40]
mov eax, dword [edi + 0x74]
mov dword [ecx + edx*4], eax
mov eax, dword [esp + 0x14]
movzx edx, byte [esi + 0x3a]
mov ecx, dword [edi + 0x74]
mov esi, dword [esi + 0x40]
mov ebp, dword [eax + 0x3c]
mov al, byte [eax + 0x39]
mov dword [esp + 0x30], edx
mov byte [esp + 0x13], al
cmp dword [edi + 0x78], ecx
jg 0x50dbdd
push edx
push esi
push ebp
movzx edx, al
mov ecx, edi
call fcn.00499040
add esp, 0xc
jmp 0x50dc14
mov dl, byte [esp + 0x13]
lea eax, [ecx + 1]
mov dword [edi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edi + 0x70]
mov byte [eax + ecx*4], dl
xor edx, edx
mov word [eax + ecx*4 + 2], dx
mov edx, dword [esp + 0x30]
mov dword [eax + ecx*4 + 4], ebp
mov dword [eax + ecx*4 + 8], esi
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
mov byte [eax + ecx*4 + 1], 0
mov eax, dword [edi + 0x74]
mov esi, dword [esp + 0x14]
test eax, eax
jle 0x50dc2e
movzx edx, byte [esi + 0x3b]
lea ecx, [eax + eax*4]
mov eax, dword [edi + 0x70]
mov word [eax + ecx*4 - 0x12], dx
cmp dword [esi + 0x24], 0
je 0x50dcab
mov ecx, dword [edi + 0xc]
mov edx, dword [esi + 0x28]
not edx
mov eax, dword [ecx + 0x3c]
add eax, dword [ecx + 0x38]
jns 0x50dc55
push edx
mov edx, edi
call fcn.00499860
add esp, 4
jmp 0x50dc5e
mov ecx, dword [ecx + 0x40]
mov eax, dword [edi + 0x74]
mov dword [ecx + edx*4], eax
mov edx, dword [esi + 0x40]
mov ecx, dword [edi + 0x74]
dec edx
mov esi, dword [esi + 0x24]
cmp dword [edi + 0x78], ecx
jg 0x50dc82
push 0
push edx
push esi
mov edx, 0x3c
mov ecx, edi
call fcn.00499040
add esp, 0xc
jmp 0x50dca7
lea eax, [ecx + 1]
xor ebp, ebp
mov dword [edi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edi + 0x70]
mov dword [eax + ecx*4], 0x3c
mov dword [eax + ecx*4 + 4], esi
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], ebp
mov dword [eax + ecx*4 + 0x10], ebp
mov esi, dword [esp + 0x14]
test ebx, ebx
je 0x50dcd5
mov eax, dword [edi]
mov edx, dword [edi + 0x74]
cmp byte [eax + 0x57], 0
je 0x50dcc1
mov eax, 0x5d5a30
jmp 0x50dcd2
test ebx, ebx
lea eax, [edx - 1]
cmovns eax, ebx
lea ecx, [eax + eax*4]
mov eax, dword [edi + 0x70]
lea eax, [eax + ecx*4]
mov dword [eax + 8], edx
mov ebx, dword [esp + 0x1c]
test dword [ebx + 0x2c], 0x800
je 0x50df89
cmp dword [esi + 0x44], 0
jle 0x50df89
mov ecx, dword [edi + 0xc]
mov edx, dword [esi + 0x10]
not edx
mov eax, dword [ecx + 0x3c]
add eax, dword [ecx + 0x38]
jns 0x50dd35
push edx
mov edx, edi
call fcn.00499860
add esp, 4
jmp 0x50dd3e
mov ecx, dword [edi + 0xc]
mov edx, dword [esi + 0x18]
not edx
mov eax, dword [ecx + 0x3c]
add eax, dword [ecx + 0x38]
jns 0x50dd2a
push edx
mov edx, edi
call fcn.00499860
add esp, 4
jmp 0x50dcd9
mov ecx, dword [ecx + 0x40]
mov eax, dword [edi + 0x74]
mov dword [ecx + edx*4], eax
jmp 0x50dcd9
mov ecx, dword [ecx + 0x40]
mov eax, dword [edi + 0x74]
mov dword [ecx + edx*4], eax
mov edx, dword [esi + 0x44]
mov eax, dword [esi + 0x48]
mov dword [esp + 0x30], edx
lea ecx, [edx - 1]
lea ecx, [ecx + ecx*4]
lea esi, [eax + ecx*4]
test edx, edx
jle 0x50df89
lea ebp, [edi + 0x70]
nop dword [eax]
mov eax, dword [edi]
mov ecx, dword [esi + 4]
mov edx, dword [edi + 0x74]
inc ecx
mov dword [esp + 0x18], ebp
cmp byte [eax + 0x57], 0
je 0x50dd7a
mov eax, 0x5d5a30
jmp 0x50dd8b
test ecx, ecx
lea eax, [edx - 1]
cmovns eax, ecx
lea ecx, [eax + eax*4]
mov eax, dword [ebp]
lea eax, [eax + ecx*4]
mov dword [eax + 8], edx
cmp byte [esi + 0x10], 0xb6
je 0x50df41
cmp dword [esi + 0xc], 0
je 0x50ded3
mov eax, dword [ebx + 0x2c]
test eax, 0x400
jne 0x50ddba
test eax, 0x40000
je 0x50ddba
mov ebx, 1
jmp 0x50ddbc
xor ebx, ebx
mov ecx, dword [esp + 0x14]
cmp dword [ecx], 0
je 0x50de1f
mov ecx, dword [edi + 0x74]
mov ebp, dword [esi]
lea edx, [ecx + 2]
add edx, ebx
cmp dword [edi + 0x78], ecx
jg 0x50dde9
push 0
push edx
push ebp
mov edx, 0x1b
mov ecx, edi
call fcn.00499040
add esp, 0xc
jmp 0x50de1b
lea eax, [ecx + 1]
mov dword [edi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esp + 0x18]
mov edi, dword [esp + 0x24]
mov eax, dword [eax]
mov dword [eax + ecx*4], 0x1b
mov dword [eax + ecx*4 + 4], ebp
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [esp + 0x14]
test ebx, ebx
je 0x50ded3
mov edx, dword [edi + 0x74]
mov eax, dword [esi + 0xc]
mov ebx, dword [esi + 8]
mov dword [esp + 0x3c], eax
lea ebp, [edx + 2]
mov eax, dword [ecx + 8]
mov dword [esp + 0x38], eax
cmp dword [edi + 0x78], edx
jg 0x50de59
push ebx
push ebp
push eax
mov edx, 0x1c
mov ecx, edi
call fcn.00499040
add esp, 0xc
mov edx, eax
jmp 0x50de8c
lea eax, [edx + 1]
xor ebp, ebp
mov ebp, dword [esp + 0x38]
lea ecx, [edx + edx*4]
mov dword [edi + 0x74], eax
mov eax, dword [esp + 0x18]
mov eax, dword [eax]
mov dword [eax + ecx*4 + 4], ebp
lea ebp, [edx + 2]
mov dword [eax + ecx*4], 0x1c
mov dword [eax + ecx*4 + 8], ebp
mov dword [eax + ecx*4 + 0xc], ebx
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [edi]
mov ebx, dword [esp + 0x18]
cmp byte [eax + 0x57], 0
jne 0x50deac
mov eax, dword [ebx]
lea ecx, [edx + edx*4]
mov edx, dword [esp + 0x3c]
mov byte [eax + ecx*4 + 1], 0xfd
mov dword [eax + ecx*4 + 0x10], edx
mov eax, dword [edi]
mov ecx, dword [esi + 4]
mov edx, dword [edi + 0x74]
inc ecx
cmp byte [eax + 0x57], 0
je 0x50dec0
mov eax, 0x5d5a30
jmp 0x50ded0
test ecx, ecx
lea eax, [edx - 1]
cmovns eax, ecx
lea ecx, [eax + eax*4]
mov eax, dword [ebx]
lea eax, [eax + ecx*4]
mov dword [eax + 8], edx
mov al, byte [esi + 0x10]
mov ecx, dword [edi + 0x74]
mov edx, dword [esi + 4]
mov ebx, dword [esi]
mov dword [esp + 0x3c], edx
mov byte [esp + 0x13], al
cmp dword [edi + 0x78], ecx
jg 0x50df02
push 0
push edx
push ebx
movzx edx, al
mov ecx, edi
call fcn.00499040
mov ebp, dword [esp + 0x24]
add esp, 0xc
jmp 0x50df41
mov ebp, dword [esp + 0x18]
lea eax, [ecx + 1]
mov dl, byte [esp + 0x13]
lea ecx, [ecx + ecx*4]
mov dword [edi + 0x74], eax
mov eax, dword [ebp]
mov byte [eax + ecx*4], dl
xor edx, edx
mov word [eax + ecx*4 + 2], dx
mov edx, dword [esp + 0x3c]
mov dword [eax + ecx*4 + 4], ebx
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov byte [eax + ecx*4 + 1], 0
mov ecx, dword [esi + 4]
mov ebx, dword [edi + 0x74]
mov edx, ebx
lea eax, [ecx - 1]
test eax, eax
mov eax, dword [edi]
cmovns edx, ecx
cmp byte [eax + 0x57], 0
je 0x50df63
lea ebp, [edi + 0x70]
mov eax, 0x5d5a38
jmp 0x50df6f
mov eax, dword [ebp]
lea ecx, [edx + edx*4]
lea eax, [eax + ecx*4]
add eax, 0xfffffff4
mov dword [eax], ebx
sub esi, 0x14
mov ebx, dword [esp + 0x30]
dec ebx
mov dword [esp + 0x30], ebx
test ebx, ebx
mov ebx, dword [esp + 0x1c]
jg 0x50dd60
mov ecx, dword [edi + 0xc]
mov ebp, dword [esp + 0x14]
mov eax, dword [ecx + 0x3c]
add eax, dword [ecx + 0x38]
mov edx, dword [ebp + 0xc]
not edx
jns 0x50dfaa
push edx
mov edx, edi
call fcn.00499860
add esp, 4
jmp 0x50dfb3
mov ecx, dword [ecx + 0x40]
mov eax, dword [edi + 0x74]
mov dword [ecx + edx*4], eax
mov edx, dword [ebp + 0x14]
test edx, edx
je 0x50e05e
mov ecx, dword [edi + 0x74]
cmp dword [edi + 0x78], ecx
jg 0x50dfdc
push 0
push edx
push 0
mov edx, 0xb
mov ecx, edi
call fcn.00499040
add esp, 0xc
jmp 0x50e00b
lea eax, [ecx + 1]
mov dword [edi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edi + 0x70]
mov dword [eax + ecx*4], 0xb
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [edi]
mov edx, dword [edi + 0x74]
mov ecx, dword [ebp + 0x14]
cmp byte [eax + 0x57], 0
je 0x50e020
mov eax, 0x5d5a30
jmp 0x50e031
test ecx, ecx
lea eax, [edx - 1]
cmovns eax, ecx
lea ecx, [eax + eax*4]
mov eax, dword [edi + 0x70]
lea eax, [eax + ecx*4]
mov dword [eax + 8], edx
mov edx, dword [edi + 0x74]
mov eax, dword [ebp + 0x14]
add eax, 0xfffffffe
lea ecx, [edx - 1]
cmovns ecx, eax
mov eax, dword [edi]
cmp byte [eax + 0x57], 0
je 0x50e052
mov eax, 0x5d5a30
jmp 0x50e05b
mov eax, dword [edi + 0x70]
lea ecx, [ecx + ecx*4]
lea eax, [eax + ecx*4]
mov dword [eax + 8], edx
mov esi, dword [ebp + 0x30]
test esi, esi
je 0x50e0b6
mov edx, dword [ebp + 0x2c]
mov ecx, dword [edi + 0x74]
shr edx, 1
cmp dword [edi + 0x78], ecx
jg 0x50e087
push 0
push esi
push edx
mov edx, 0x3c
mov ecx, edi
call fcn.00499040
add esp, 0xc
jmp 0x50e0b6
mov ebx, dword [esp + 0x1c]
lea eax, [ecx + 1]
mov dword [edi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edi + 0x70]
mov dword [eax + ecx*4], 0x3c
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], esi
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov edx, dword [ebp]
test edx, edx
je 0x50e362
mov esi, dword [edi + 0x74]
mov ebx, dword [ebx + 0x2c]
mov dword [esp + 0x30], esi
cmp dword [edi + 0x78], esi
jg 0x50e0ea
push 0
push 0
push edx
mov edx, 0x31
mov ecx, edi
call fcn.00499040
add esp, 0xc
mov dword [esp + 0x30], eax
jmp 0x50e119
lea eax, [esi + 1]
mov dword [edi + 0x74], eax
lea ecx, [esi + esi*4]
mov eax, dword [edi + 0x70]
mov dword [eax + ecx*4], 0x31
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
test bl, 0x40
jne 0x50e16e
mov ecx, dword [edi + 0x74]
mov edx, dword [ebp + 4]
cmp dword [edi + 0x78], ecx
jg 0x50e13f
push 0
push 0
push edx
mov edx, 0x87
mov ecx, edi
call fcn.00499040
add esp, 0xc
jmp 0x50e16e
lea eax, [ecx + 1]
mov dword [edi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edi + 0x70]
mov dword [eax + ecx*4], 0x87
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
test ebx, 0x200
jne 0x50e191
test ebx, 0x2000
je 0x50e2ad
cmp dword [ebp + 0x44], 0
lea eax, [ebp + 0x44]
je 0x50e2ad
jmp 0x50e1a0
lea eax, [ebp + 0x44]
test ebx, 0x2000
je 0x50e25d
mov ebp, dword [eax]
mov edx, 0xffff8000
mov ecx, dword [ebp + 0x18]
test ecx, ecx
je 0x50e1c8
mov eax, dword [esp + 0x2c]
xor edx, edx
mov eax, dword [eax + 0x10]
add eax, 0xc
cmp dword [eax], ecx
je 0x50e1c8
nop
lea eax, [eax + 0x10]
inc edx
cmp dword [eax], ecx
jne 0x50e1c0
mov eax, dword [esp + 0x14]
mov ecx, dword [edi + 0x74]
mov esi, dword [ebp + 0x2c]
mov ebx, dword [eax + 8]
cmp dword [edi + 0x78], ecx
jg 0x50e1ee
push edx
push esi
push ebx
mov edx, 0x64
mov ecx, edi
call fcn.00499040
add esp, 0xc
jmp 0x50e219
lea eax, [ecx + 1]
mov dword [edi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edi + 0x70]
mov edi, dword [esp + 0x24]
mov dword [eax + ecx*4], 0x64
mov dword [eax + ecx*4 + 4], ebx
mov dword [eax + ecx*4 + 8], esi
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esp + 0x20]
mov edx, ebp
mov ecx, eax
mov esi, dword [eax + 8]
call fcn.004cbc40
mov edx, eax
test edx, edx
je 0x50e259
mov ecx, dword [esi]
cmp byte [ecx + 0x57], 0
je 0x50e247
push edx
mov edx, 0xfffffff7
call fcn.00499b50
add esp, 4
jmp 0x50e259
mov eax, dword [esi + 0x74]
lea ecx, [eax + eax*4]
mov eax, dword [esi + 0x70]
mov byte [eax + ecx*4 - 0x13], 0xf7
mov dword [eax + ecx*4 - 4], edx
mov ebp, dword [esp + 0x14]
mov ecx, dword [edi + 0x74]
mov edx, dword [ebp + 8]
cmp dword [edi + 0x78], ecx
jg 0x50e27e
push 0
push 0
push edx
mov edx, 0x87
mov ecx, edi
call fcn.00499040
add esp, 0xc
jmp 0x50e2ad
lea eax, [ecx + 1]
mov dword [edi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edi + 0x70]
mov dword [eax + ecx*4], 0x87
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
cmp byte [ebp + 0x39], 0x43
mov edx, dword [ebp + 0x1c]
mov ecx, dword [edi + 0x74]
jne 0x50e2ef
mov esi, dword [ebp + 0x3c]
cmp dword [edi + 0x78], ecx
jg 0x50e2d6
push 0
push edx
push esi
mov edx, 0xc
mov ecx, edi
call fcn.00499040
add esp, 0xc
jmp 0x50e339
lea eax, [ecx + 1]
mov dword [edi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edi + 0x70]
mov dword [eax + ecx*4], 0xc
mov dword [eax + ecx*4 + 4], esi
jmp 0x50e325
cmp dword [edi + 0x78], ecx
jg 0x50e30a
push 0
push edx
push 0
mov edx, 0xb
mov ecx, edi
call fcn.00499040
add esp, 0xc
jmp 0x50e339
lea eax, [ecx + 1]
mov dword [edi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edi + 0x70]
mov dword [eax + ecx*4], 0xb
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 0x10], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 8], edx
mov ecx, dword [esp + 0x30]
mov edx, dword [edi + 0x74]
test ecx, ecx
jns 0x50e347
lea ecx, [edx - 1]
mov eax, dword [edi]
cmp byte [eax + 0x57], 0
je 0x50e356
mov eax, 0x5d5a30
jmp 0x50e35f
mov eax, dword [edi + 0x70]
lea ecx, [ecx + ecx*4]
lea eax, [eax + ecx*4]
mov dword [eax + 8], edx
mov ecx, dword [esp + 0x34]
mov esi, dword [esp + 0x28]
sub ecx, 1
mov dword [esp + 0x34], ecx
jns 0x50d9d0
lea eax, [edi + 0xc]
mov ecx, dword [eax]
mov edx, dword [esi + 0x24]
not edx
mov eax, dword [ecx + 0x3c]
add eax, dword [ecx + 0x38]
jns 0x50e396
push edx
mov edx, edi
call fcn.00499860
add esp, 4
jmp 0x50e39f
mov ecx, dword [ecx + 0x40]
mov eax, dword [edi + 0x74]
mov dword [ecx + edx*4], eax
xor ebp, ebp
cmp byte [esi + 0x30], 0
mov dword [esp + 0x30], ebp
jbe 0x50e583
lea ebx, [esi + 0x34c]
mov dword [esp + 0x18], ebx
nop dword [eax]
movzx eax, byte [ebx - 0x14]
mov edx, dword [esp + 0x40]
lea eax, [eax + eax*8]
test byte [edx + eax*8 + 0x30], 0x10
mov ecx, dword [edx + eax*8 + 0x18]
mov dword [esp + 0x3c], ecx
mov ecx, dword [ebx]
je 0x50e3f9
mov ecx, dword [esp + 0x20]
push 0
push dword [edx + eax*8 + 0x28]
mov edx, dword [ebx - 0x2c]
push dword [ebx - 0x48]
call fcn.005063b0
add esp, 0xc
jmp 0x50e56b
mov eax, dword [ecx + 0x2c]
test eax, 0x240
je 0x50e408
mov eax, dword [ecx + 0x20]
jmp 0x50e416
test eax, 0x2000
je 0x50e56b
mov eax, dword [ebx - 8]
mov dword [esp + 0x34], eax
test eax, eax
je 0x50e56b
mov ecx, dword [esp + 0x2c]
cmp byte [ecx + 0x57], 0
jne 0x50e56b
cmp byte [esi + 0x32], 0
je 0x50e444
mov eax, dword [eax + 0xc]
test byte [eax + 0x1c], 0x80
jne 0x50e444
mov edx, dword [esi + 0x40]
jmp 0x50e448
mov edx, dword [esp + 0x44]
mov esi, dword [ebx - 0x2c]
add esi, 1
mov ecx, esi
jns 0x50e456
mov ecx, dword [edi + 0x74]
dec ecx
mov eax, dword [edi]
cmp byte [eax + 0x57], 0
je 0x50e465
mov ebp, 0x5d5a30
jmp 0x50e46e
mov eax, dword [edi + 0x70]
lea ecx, [ecx + ecx*4]
lea ebp, [eax + ecx*4]
mov edi, dword [esp + 0x3c]
sub edx, esi
lea eax, [edx + edx*4]
lea eax, [eax*4]
add eax, ebp
add ebp, 4
mov dword [esp + 0x1c], eax
mov ecx, eax
nop dword [eax]
mov eax, dword [ebp]
cmp eax, dword [ebx - 0x48]
jne 0x50e551
mov al, byte [ebp - 4]
cmp al, 0x5d
jne 0x50e53a
mov eax, dword [edi + 0x1c]
mov edx, dword [ebp + 4]
test al, al
jns 0x50e4c1
mov ecx, edi
call fcn.004c39f0
mov eax, dword [eax + 4]
movzx esi, word [eax + edx*2]
jmp 0x50e506
movzx ecx, dx
mov esi, ecx
test al, 0x20
je 0x50e503
xor eax, eax
xor ebx, ebx
cmp ax, cx
jg 0x50e4ff
mov edx, dword [edi + 4]
add edx, 0xe
nop dword [eax]
test byte [edx], 0x20
lea eax, [esi + 1]
movzx ecx, ax
lea edx, [edx + 0x10]
movzx eax, si
cmove ecx, eax
inc ebx
movzx ecx, cx
movsx eax, cx
mov esi, ecx
cmp ebx, eax
jle 0x50e4e0
mov ebx, dword [esp + 0x18]
movzx esi, si
mov ecx, dword [esp + 0x34]
xor eax, eax
movzx edx, word [ecx + 0x34]
test edx, edx
je 0x50e524
mov ecx, dword [ecx + 4]
cmp si, word [ecx]
je 0x50e535
inc eax
add ecx, 2
cmp eax, edx
jl 0x50e517
or eax, 0xffffffff
mov ecx, dword [esp + 0x1c]
cwde
test eax, eax
js 0x50e551
mov dword [ebp + 4], eax
jmp 0x50e54b
movzx eax, ax
jmp 0x50e527
cmp al, 0x86
jne 0x50e547
mov eax, dword [ebx - 0x44]
mov byte [ebp - 4], 0x8d
jmp 0x50e54e
cmp al, 0x16
jne 0x50e551
mov eax, dword [ebx - 0x44]
mov dword [ebp], eax
add ebp, 0x14
lea eax, [ebp - 4]
cmp eax, ecx
jb 0x50e490
mov edi, dword [esp + 0x24]
mov ebp, dword [esp + 0x30]
mov esi, dword [esp + 0x28]
movzx eax, byte [esi + 0x30]
inc ebp
add ebx, 0x58
mov dword [esp + 0x30], ebp
mov dword [esp + 0x18], ebx
cmp ebp, eax
jl 0x50e3c0
cmp dword [esi + 0x48], 0
je 0x50e590
mov ecx, esi
call fcn.005081c0
mov edx, dword [esp + 0x20]
mov eax, dword [esi + 0x28]
mov ecx, dword [esp + 0x2c]
mov dword [edx + 0x88], eax
mov edx, esi
call fcn.00508060
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret