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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
cmp dword [edx + 8], 0
push ebx
mov ebx, dword [edx + 0x3c]
push esi
push edi
mov dword [esp + 0x14], edx
mov edi, ecx
mov dword [esp + 0x1c], ebx
jne 0x486284
test ebx, ebx
je 0x486284
inc dword [edi + 0x2c]
mov eax, dword [edi + 0x2c]
mov dword [edx + 8], eax
mov esi, dword [edi + 8]
mov dword [esp + 0x10], eax
test esi, esi
jne 0x485fd7
cmp dword [edi + 0x78], esi
jne 0x485fd0
mov eax, dword [edi]
test byte [eax + 0x50], 8
jne 0x485fd0
mov byte [edi + 0x17], 1
call fcn.00436f50
mov esi, eax
mov ebx, dword [ebx + 0xc]
test ebx, ebx
je 0x486104
test dword [ebx + 4], 0x800
je 0x485ff0
mov ebx, dword [ebx + 8]
jmp 0x48603b
movzx eax, byte [ebx]
sub eax, 0xad
je 0x48600d
sub eax, 1
jne 0x48602d
mov ecx, dword [ebx + 0xc]
lea edx, [esp + 0x18]
call fcn.00450590
jmp 0x48602f
mov ecx, dword [ebx + 0xc]
lea edx, [esp + 0x18]
mov dword [esp + 0x18], 0
call fcn.00450590
test eax, eax
je 0x48602d
mov ebx, dword [esp + 0x18]
neg ebx
jmp 0x48603b
xor eax, eax
test eax, eax
je 0x486104
mov ebx, dword [esp + 0x18]
mov ecx, dword [esi + 0x6c]
cmp dword [esi + 0x70], ecx
jg 0x48605b
push 0
push dword [esp + 0x14]
mov edx, 0x47
mov ecx, esi
push ebx
call fcn.00437140
add esp, 0xc
jmp 0x48608a
mov edx, dword [esp + 0x10]
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4], 0x47
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
test ebx, ebx
jne 0x4860d0
mov ecx, dword [esi + 0x6c]
cmp dword [esi + 0x70], ecx
jg 0x4860ad
push ebx
push dword [ebp + 8]
lea edx, [ebx + 9]
mov ecx, esi
push ebx
call fcn.00437140
add esp, 0xc
jmp 0x4861b9
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4], 9
mov dword [eax + ecx*4 + 4], 0
lea ecx, [eax + ecx*4]
jmp 0x4861a5
js 0x4861b9
mov eax, ebx
cdq
push edx
push eax
call fcn.00418cc0
mov cx, ax
add esp, 8
mov eax, dword [esp + 0x14]
cmp word [eax + 2], cx
jle 0x4861bd
or dword [eax + 4], 0x4000
mov word [eax + 2], cx
jmp 0x4861bd
push dword [esp + 0x10]
mov edx, ebx
mov ecx, edi
call fcn.004560e0
mov ecx, dword [esi + 0x6c]
add esp, 4
cmp dword [esi + 0x70], ecx
jg 0x486139
push 0
push 0
push dword [esp + 0x18]
mov edx, 0xd
mov ecx, esi
call fcn.00437140
mov edx, dword [esp + 0x1c]
add esp, 0xc
jmp 0x48616c
mov edx, dword [esp + 0x10]
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4], 0xd
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
mov ecx, dword [esi + 0x6c]
cmp dword [esi + 0x70], ecx
jg 0x48618b
push 0
push dword [ebp + 8]
mov ecx, esi
push edx
mov edx, 0x11
call fcn.00437140
add esp, 0xc
jmp 0x4861b9
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4], 0x11
mov dword [eax + ecx*4 + 4], edx
lea ecx, [eax + ecx*4]
mov eax, dword [ebp + 8]
mov dword [ecx + 0x10], 0
mov dword [ecx + 0xc], 0
mov dword [ecx + 8], eax
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x1c]
cmp dword [edx + 0x10], 0
je 0x486284
inc dword [edi + 0x2c]
mov ecx, edi
mov ebx, dword [edi + 0x2c]
mov dword [eax + 0xc], ebx
inc dword [edi + 0x2c]
mov edx, dword [edx + 0x10]
push ebx
call fcn.004560e0
mov ecx, dword [esi + 0x6c]
add esp, 4
cmp dword [esi + 0x70], ecx
jg 0x486203
push 0
push 0
push ebx
mov edx, 0xd
mov ecx, esi
call fcn.00437140
add esp, 0xc
jmp 0x486232
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4], 0xd
mov dword [eax + ecx*4 + 4], ebx
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [esi + 0x6c]
lea edi, [ebx + 1]
cmp dword [esi + 0x70], ecx
jg 0x486259
push ebx
push edi
push dword [esp + 0x18]
mov edx, 0xa0
mov ecx, esi
call fcn.00437140
add esp, 0xc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [esp + 0x10]
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4], 0xa0
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], edi
mov dword [eax + ecx*4 + 0xc], ebx
mov dword [eax + ecx*4 + 0x10], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret