Function at 0x506790
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 0x50718a
jmp 0x5067e4
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 0x506b1d
mov eax, dword [esp + 0x28]
xor ebx, ebx
cmp byte [eax + 0x33], 2
jne 0x506994
movzx eax, byte [eax + 0x30]
dec eax
cmp ecx, eax
jne 0x506994
mov ecx, dword [esp + 0x1c]
test dword [ecx + 0x2c], 0x200
je 0x506994
mov eax, dword [ecx + 0x20]
test byte [eax + 0x38], 0x80
je 0x506994
movzx ebp, word [ecx + 0x1e]
test ebp, ebp
je 0x506994
mov eax, dword [eax + 8]
cmp word [eax + ebp*2], 0x24
jl 0x506994
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 0x506889
push ebx
push esi
push edx
mov edx, 0x5d
mov ecx, edi
call fcn.00491e40
add esp, 0xc
jmp 0x5068b4
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 0x506863
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 0x5068fc
push dword [esp + 0x18]
mov ecx, edi
push 0
push esi
call fcn.00491e40
add esp, 0xc
mov ebx, eax
jmp 0x50692f
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 0x506946
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 0x50696b
push 0
push edx
push 1
mov edx, 0xb
mov ecx, edi
call fcn.00491e40
add esp, 0xc
jmp 0x506994
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 0x5069b1
push edx
mov edx, edi
call fcn.00492660
add esp, 4
jmp 0x5069ba
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 0x5069ed
push edx
push esi
push ebp
movzx edx, al
mov ecx, edi
call fcn.00491e40
add esp, 0xc
jmp 0x506a24
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 0x506a3e
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 0x506abb
mov ecx, dword [edi + 0xc]
mov edx, dword [esi + 0x28]
not edx
mov eax, dword [ecx + 0x3c]
add eax, dword [ecx + 0x38]
jns 0x506a65
push edx
mov edx, edi
call fcn.00492660
add esp, 4
jmp 0x506a6e
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 0x506a92
push 0
push edx
push esi
mov edx, 0x3c
mov ecx, edi
call fcn.00491e40
add esp, 0xc
jmp 0x506ab7
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 0x506ae5
mov eax, dword [edi]
mov edx, dword [edi + 0x74]
cmp byte [eax + 0x57], 0
je 0x506ad1
mov eax, 0x5cdb30
jmp 0x506ae2
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 0x506d99
cmp dword [esi + 0x44], 0
jle 0x506d99
mov ecx, dword [edi + 0xc]
mov edx, dword [esi + 0x10]
not edx
mov eax, dword [ecx + 0x3c]
add eax, dword [ecx + 0x38]
jns 0x506b45
push edx
mov edx, edi
call fcn.00492660
add esp, 4
jmp 0x506b4e
mov ecx, dword [edi + 0xc]
mov edx, dword [esi + 0x18]
not edx
mov eax, dword [ecx + 0x3c]
add eax, dword [ecx + 0x38]
jns 0x506b3a
push edx
mov edx, edi
call fcn.00492660
add esp, 4
jmp 0x506ae9
mov ecx, dword [ecx + 0x40]
mov eax, dword [edi + 0x74]
mov dword [ecx + edx*4], eax
jmp 0x506ae9
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 0x506d99
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 0x506b8a
mov eax, 0x5cdb30
jmp 0x506b9b
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 0x506d51
cmp dword [esi + 0xc], 0
je 0x506ce3
mov eax, dword [ebx + 0x2c]
test eax, 0x400
jne 0x506bca
test eax, 0x40000
je 0x506bca
mov ebx, 1
jmp 0x506bcc
xor ebx, ebx
mov ecx, dword [esp + 0x14]
cmp dword [ecx], 0
je 0x506c2f
mov ecx, dword [edi + 0x74]
mov ebp, dword [esi]
lea edx, [ecx + 2]
add edx, ebx
cmp dword [edi + 0x78], ecx
jg 0x506bf9
push 0
push edx
push ebp
mov edx, 0x1b
mov ecx, edi
call fcn.00491e40
add esp, 0xc
jmp 0x506c2b
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 0x506ce3
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 0x506c69
push ebx
push ebp
push eax
mov edx, 0x1c
mov ecx, edi
call fcn.00491e40
add esp, 0xc
mov edx, eax
jmp 0x506c9c
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 0x506cbc
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 0x506cd0
mov eax, 0x5cdb30
jmp 0x506ce0
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 0x506d12
push 0
push edx
push ebx
movzx edx, al
mov ecx, edi
call fcn.00491e40
mov ebp, dword [esp + 0x24]
add esp, 0xc
jmp 0x506d51
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 0x506d73
lea ebp, [edi + 0x70]
mov eax, 0x5cdb38
jmp 0x506d7f
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 0x506b70
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 0x506dba
push edx
mov edx, edi
call fcn.00492660
add esp, 4
jmp 0x506dc3
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 0x506e6e
mov ecx, dword [edi + 0x74]
cmp dword [edi + 0x78], ecx
jg 0x506dec
push 0
push edx
push 0
mov edx, 0xb
mov ecx, edi
call fcn.00491e40
add esp, 0xc
jmp 0x506e1b
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 0x506e30
mov eax, 0x5cdb30
jmp 0x506e41
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 0x506e62
mov eax, 0x5cdb30
jmp 0x506e6b
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 0x506ec6
mov edx, dword [ebp + 0x2c]
mov ecx, dword [edi + 0x74]
shr edx, 1
cmp dword [edi + 0x78], ecx
jg 0x506e97
push 0
push esi
push edx
mov edx, 0x3c
mov ecx, edi
call fcn.00491e40
add esp, 0xc
jmp 0x506ec6
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 0x507172
mov esi, dword [edi + 0x74]
mov ebx, dword [ebx + 0x2c]
mov dword [esp + 0x30], esi
cmp dword [edi + 0x78], esi
jg 0x506efa
push 0
push 0
push edx
mov edx, 0x31
mov ecx, edi
call fcn.00491e40
add esp, 0xc
mov dword [esp + 0x30], eax
jmp 0x506f29
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 0x506f7e
mov ecx, dword [edi + 0x74]
mov edx, dword [ebp + 4]
cmp dword [edi + 0x78], ecx
jg 0x506f4f
push 0
push 0
push edx
mov edx, 0x87
mov ecx, edi
call fcn.00491e40
add esp, 0xc
jmp 0x506f7e
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 0x506fa1
test ebx, 0x2000
je 0x5070bd
cmp dword [ebp + 0x44], 0
lea eax, [ebp + 0x44]
je 0x5070bd
jmp 0x506fb0
lea eax, [ebp + 0x44]
test ebx, 0x2000
je 0x50706d
mov ebp, dword [eax]
mov edx, 0xffff8000
mov ecx, dword [ebp + 0x18]
test ecx, ecx
je 0x506fd8
mov eax, dword [esp + 0x2c]
xor edx, edx
mov eax, dword [eax + 0x10]
add eax, 0xc
cmp dword [eax], ecx
je 0x506fd8
nop
lea eax, [eax + 0x10]
inc edx
cmp dword [eax], ecx
jne 0x506fd0
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 0x506ffe
push edx
push esi
push ebx
mov edx, 0x64
mov ecx, edi
call fcn.00491e40
add esp, 0xc
jmp 0x507029
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.004c4a40
mov edx, eax
test edx, edx
je 0x507069
mov ecx, dword [esi]
cmp byte [ecx + 0x57], 0
je 0x507057
push edx
mov edx, 0xfffffff7
call fcn.00492950
add esp, 4
jmp 0x507069
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 0x50708e
push 0
push 0
push edx
mov edx, 0x87
mov ecx, edi
call fcn.00491e40
add esp, 0xc
jmp 0x5070bd
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 0x5070ff
mov esi, dword [ebp + 0x3c]
cmp dword [edi + 0x78], ecx
jg 0x5070e6
push 0
push edx
push esi
mov edx, 0xc
mov ecx, edi
call fcn.00491e40
add esp, 0xc
jmp 0x507149
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 0x507135
cmp dword [edi + 0x78], ecx
jg 0x50711a
push 0
push edx
push 0
mov edx, 0xb
mov ecx, edi
call fcn.00491e40
add esp, 0xc
jmp 0x507149
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 0x507157
lea ecx, [edx - 1]
mov eax, dword [edi]
cmp byte [eax + 0x57], 0
je 0x507166
mov eax, 0x5cdb30
jmp 0x50716f
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 0x5067e0
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 0x5071a6
push edx
mov edx, edi
call fcn.00492660
add esp, 4
jmp 0x5071af
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 0x507393
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 0x507209
mov ecx, dword [esp + 0x20]
push 0
push dword [edx + eax*8 + 0x28]
mov edx, dword [ebx - 0x2c]
push dword [ebx - 0x48]
call fcn.004ff1d0
add esp, 0xc
jmp 0x50737b
mov eax, dword [ecx + 0x2c]
test eax, 0x240
je 0x507218
mov eax, dword [ecx + 0x20]
jmp 0x507226
test eax, 0x2000
je 0x50737b
mov eax, dword [ebx - 8]
mov dword [esp + 0x34], eax
test eax, eax
je 0x50737b
mov ecx, dword [esp + 0x2c]
cmp byte [ecx + 0x57], 0
jne 0x50737b
cmp byte [esi + 0x32], 0
je 0x507254
mov eax, dword [eax + 0xc]
test byte [eax + 0x1c], 0x80
jne 0x507254
mov edx, dword [esi + 0x40]
jmp 0x507258
mov edx, dword [esp + 0x44]
mov esi, dword [ebx - 0x2c]
add esi, 1
mov ecx, esi
jns 0x507266
mov ecx, dword [edi + 0x74]
dec ecx
mov eax, dword [edi]
cmp byte [eax + 0x57], 0
je 0x507275
mov ebp, 0x5cdb30
jmp 0x50727e
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 0x507361
mov al, byte [ebp - 4]
cmp al, 0x5d
jne 0x50734a
mov eax, dword [edi + 0x1c]
mov edx, dword [ebp + 4]
test al, al
jns 0x5072d1
mov ecx, edi
call fcn.004bc7f0
mov eax, dword [eax + 4]
movzx esi, word [eax + edx*2]
jmp 0x507316
movzx ecx, dx
mov esi, ecx
test al, 0x20
je 0x507313
xor eax, eax
xor ebx, ebx
cmp ax, cx
jg 0x50730f
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 0x5072f0
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 0x507334
mov ecx, dword [ecx + 4]
cmp si, word [ecx]
je 0x507345
inc eax
add ecx, 2
cmp eax, edx
jl 0x507327
or eax, 0xffffffff
mov ecx, dword [esp + 0x1c]
cwde
test eax, eax
js 0x507361
mov dword [ebp + 4], eax
jmp 0x50735b
movzx eax, ax
jmp 0x507337
cmp al, 0x86
jne 0x507357
mov eax, dword [ebx - 0x44]
mov byte [ebp - 4], 0x8d
jmp 0x50735e
cmp al, 0x16
jne 0x507361
mov eax, dword [ebx - 0x44]
mov dword [ebp], eax
add ebp, 0x14
lea eax, [ebp - 4]
cmp eax, ecx
jb 0x5072a0
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 0x5071d0
cmp dword [esi + 0x48], 0
je 0x5073a0
mov ecx, esi
call fcn.00500fe0
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.00500e80
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret