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

Disassembly:
sub esp, 0xd4
mov eax, dword [0x698b9c]
xor eax, esp
mov dword [esp + 0xd0], eax
mov ecx, dword [esp + 0xe4]
mov eax, dword [esp + 0xdc]
push ebx
push ebp
push edi
mov edi, dword [esp + 0xe4]
mov dword [esp + 0xc], ecx
mov dword [esp + 0x24], edx
mov edx, dword [esp + 0xf4]
xor ecx, ecx
mov dword [esp + 0x10], edx
cmp edi, ecx
jne 0x46144d
call fcn.005c7bd1
mov dword [eax], 9
or eax, 0xffffffff
or edx, eax
pop edi
pop ebp
pop ebx
mov ecx, dword [esp + 0xd0]
xor ecx, esp
call fcn.005bfcb8
add esp, 0xd4
ret
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0xec]
mov dword [esp + 0x48], eax
lea edx, [esp + 0x48]
xor eax, eax
mov dword [esp + 0x28], edx
mov dword [esp + 0x2c], 1
mov dword [esp + 0x40], ecx
mov dword [esp + 0x44], ecx
mov dword [esp + 0x30], ecx
xor ebx, ebx
lea esp, [esp]
mov ebp, dword [edx]
add eax, ebp
adc ecx, 0
js 0x46163a
jg 0x461497
test eax, eax
jb 0x46163a
inc ebx
add edx, 8
cmp ebx, 1
jl 0x461480
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x38], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ecx
call fcn.005c7bd1
mov ebp, dword [esp + 0x10]
mov ebx, eax
lea eax, [esp + 0x28]
push eax
push edi
lea edx, [esp + 0x60]
mov ecx, ebp
call fcn.0047ae70
add esp, 8
mov dword [ebx], eax
call fcn.005c7bd1
cmp dword [eax], 0
mov ebx, dword [esp + 0x3c]
je 0x46151b
mov ecx, dword [esp + 0x18]
cmp dword [esp + 0x38], ecx
jne 0x4614ef
cmp ebx, dword [esp + 0x1c]
je 0x46151b
call fcn.005c7bd1
cmp dword [eax], 4
je 0x461510
call fcn.005c7bd1
cmp dword [eax], 0xffffffff
je 0x461510
call fcn.005c7bd1
cmp dword [eax], 0x2733
jne 0x46151b
call fcn.005c7bd1
mov dword [eax], 0
call fcn.005c7bd1
cmp dword [eax], 0
jne 0x4616ce
test dword [ebp], 0x2000
jne 0x4616ce
mov edi, dword [edi + 0x10]
mov eax, dword [edi + 0xc8]
mov edx, dword [edi + 0xcc]
mov ecx, eax
and ecx, 0x10000000
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edx
mov ecx, 0
je 0x461652
test ecx, ecx
jne 0x461652
mov edx, eax
and edx, 0x8000000
mov dword [esp + 0x10], edx
je 0x461652
test ecx, ecx
jne 0x461652
mov edx, dword [esp + 0x24]
cmp dword [edx], 0x2c
jl 0x461656
mov cl, byte [esp + 0x78]
test cl, 1
je 0x461656
movzx eax, word [esp + 0x58]
mov word [esi], ax
movzx eax, word [esp + 0x5a]
mov word [esi + 2], ax
movzx eax, word [esp + 0x5c]
mov word [esi + 4], ax
mov eax, dword [esp + 0x60]
mov dword [esi + 8], eax
mov eax, dword [esp + 0x64]
mov dword [esi + 0x14], eax
mov eax, dword [esp + 0x6c]
mov dword [esi + 0xc], eax
mov eax, dword [esp + 0x70]
mov dword [esi + 0x10], eax
mov eax, dword [esp + 0x74]
mov dword [esi + 0x18], eax
movzx eax, word [esp + 0x7a]
mov word [esi + 0x1c], ax
xor eax, eax
mov word [esi + 0x1e], ax
test cl, 4
je 0x4615f6
mov eax, 0x400
mov word [esi + 0x1e], ax
test cl, 8
je 0x461600
or word [esi + 0x1e], 0x10
test cl, 2
je 0x46160a
or word [esi + 0x1e], 0x20
mov ecx, dword [esp + 0x84]
mov eax, dword [esp + 0x80]
mov dword [esi + 0x20], ecx
mov ecx, dword [esp + 0x7c]
mov dword [esi + 0x24], eax
mov dword [esi + 0x28], ecx
mov dword [edx], 0x2c
mov edx, dword [esp + 0xc]
mov dword [edx], 3
jmp 0x4616ce
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], ecx
call fcn.005c7bd1
mov dword [eax], 0x16
jmp 0x461430
mov edx, dword [esp + 0x24]
and eax, 0x8000000
mov dword [esp + 0x10], eax
mov eax, 0
je 0x4616be
test eax, eax
jne 0x4616be
cmp dword [edx], 0x1c
jl 0x4616be
movzx eax, word [esp + 0x58]
mov cx, word [esp + 0x5a]
mov word [esi], ax
movzx eax, word [esp + 0x5c]
mov word [esi + 2], cx
mov ecx, dword [esp + 0x60]
mov word [esi + 4], ax
mov eax, dword [esp + 0x64]
mov dword [esi + 8], ecx
mov ecx, dword [esp + 0x6c]
mov dword [esi + 0x14], eax
mov eax, dword [esp + 0x70]
mov dword [esi + 0xc], ecx
mov ecx, dword [esp + 0x74]
mov dword [esi + 0x10], eax
mov dword [esi + 0x18], ecx
mov dword [edx], 0x1c
mov edx, dword [esp + 0xc]
mov dword [edx], 1
jmp 0x4616ce
mov eax, dword [esp + 0xc]
mov dword [eax], 0
mov dword [edx], 0
call fcn.005c7bd1
cmp dword [eax], 0
jne 0x461430
mov eax, dword [esp + 0x18]
sub eax, dword [esp + 0x38]
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0xdc]
pop edi
sbb edx, ebx
pop ebp
pop ebx
xor ecx, esp
call fcn.005bfcb8
add esp, 0xd4
ret