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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x500c60
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x6306b0]
xor eax, esp
mov dword [esp + 0x58], eax
push ebx
push esi
push edi
mov eax, dword [0x6306b0]
xor eax, esp
push eax
lea eax, [esp + 0x70]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 0xc]
xor edi, edi
cmp eax, edi
mov dword [esp + 0x1c], esi
jbe 0x49479c
mov eax, dword [esi + 8]
mov ebx, dword [eax]
add esi, 4
mov eax, esi
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ebx
lea esp, [esp]
cmp eax, edi
mov ecx, dword [esi + 4]
mov dword [esp + 0x2c], ecx
je 0x4946bf
cmp eax, esi
je 0x4946c8
call fcn.004b5f27
mov eax, dword [esp + 0x14]
cmp ebx, dword [esp + 0x2c]
je 0x494776
cmp eax, edi
jne 0x4946df
call fcn.004b5f27
mov eax, dword [esp + 0x14]
cmp ebx, dword [eax + 4]
jne 0x4946ed
call fcn.004b5f27
mov eax, dword [esp + 0x14]
cmp ebx, dword [eax + 4]
mov edx, dword [ebx + 0x28]
mov dword [esp + 0x20], edx
jne 0x4946fe
call fcn.004b5f27
push 0xffffffffffffffff
lea eax, [ebx + 0xc]
push edi
push eax
lea ecx, [esp + 0x3c]
mov dword [esp + 0x54], 7
mov dword [esp + 0x50], edi
mov word [esp + 0x40], di
call fcn.00403240
mov ecx, 0x631bd8
mov dword [esp + 0x78], edi
call fcn.00403bc0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x14]
call eax
mov ecx, dword [esp + 0x20]
mov edx, dword [eax]
mov edx, dword [edx + 0x20]
push ecx
mov ecx, eax
call edx
cmp dword [esp + 0x48], 8
mov dword [esp + 0x78], 0xffffffff
jb 0x494760
mov eax, dword [esp + 0x34]
push eax
call fcn.004a37b7
add esp, 4
lea ecx, [esp + 0x14]
call fcn.004408a0
mov ebx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
jmp 0x4946b0
mov ecx, dword [esi + 4]
mov edx, dword [ecx + 4]
push edx
mov ecx, esi
call fcn.00454e30
mov eax, dword [esi + 4]
mov dword [eax + 4], eax
mov eax, dword [esi + 4]
mov dword [esi + 8], edi
mov dword [eax], eax
mov esi, dword [esi + 4]
mov dword [esi + 8], esi
mov esi, dword [esp + 0x1c]
cmp dword [esi + 0x18], edi
jbe 0x4948b0
mov ecx, dword [esi + 0x14]
mov ecx, dword [ecx]
lea eax, [esi + 0x10]
mov ebx, ecx
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ebx
mov ecx, dword [esi + 0x14]
add esi, 0x10
cmp eax, edi
mov dword [esp + 0x2c], ecx
je 0x4947c9
cmp eax, esi
je 0x4947d2
call fcn.004b5f27
mov eax, dword [esp + 0x14]
cmp ebx, dword [esp + 0x2c]
je 0x49488a
cmp eax, edi
jne 0x4947e9
call fcn.004b5f27
mov eax, dword [esp + 0x14]
cmp ebx, dword [eax + 4]
jne 0x4947f3
call fcn.004b5f27
mov edx, dword [esp + 0x14]
cmp ebx, dword [edx + 4]
mov esi, dword [ebx + 0x28]
jne 0x494804
call fcn.004b5f27
push 0xffffffffffffffff
lea eax, [ebx + 0xc]
push edi
push eax
lea ecx, [esp + 0x3c]
mov dword [esp + 0x54], 7
mov dword [esp + 0x50], edi
mov word [esp + 0x40], di
call fcn.00403240
mov ecx, 0x631bd8
mov dword [esp + 0x78], 1
call fcn.00403bc0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x14]
call eax
mov ecx, dword [esi + 4]
mov edx, dword [eax]
mov edx, dword [edx + 0x20]
push ecx
mov ecx, eax
call edx
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
cmp dword [esp + 0x48], 8
mov dword [esp + 0x78], 0xffffffff
jb 0x494870
mov eax, dword [esp + 0x34]
push eax
call fcn.004a37b7
add esp, 4
lea ecx, [esp + 0x14]
call fcn.004408a0
mov ebx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
mov esi, dword [esp + 0x1c]
jmp 0x4947b7
mov ecx, dword [esi + 4]
mov edx, dword [ecx + 4]
push edx
mov ecx, esi
call fcn.00454e30
mov eax, dword [esi + 4]
mov dword [eax + 4], eax
mov eax, dword [esi + 4]
mov dword [esi + 8], edi
mov dword [eax], eax
mov esi, dword [esi + 4]
mov dword [esi + 8], esi
mov esi, dword [esp + 0x1c]
cmp dword [esi + 0x24], edi
jbe 0x4949b3
mov eax, dword [esi + 0x20]
mov eax, dword [eax]
lea ebx, [esi + 0x1c]
mov esi, ebx
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], eax
jmp 0x4948d0
cmp esi, edi
mov ecx, dword [ebx + 4]
mov dword [esp + 0x2c], ecx
je 0x4948df
cmp esi, ebx
je 0x4948e4
call fcn.004b5f27
mov edx, dword [esp + 0x2c]
cmp dword [esp + 0x24], edx
je 0x49498d
cmp esi, edi
jne 0x4948fb
call fcn.004b5f27
mov eax, dword [esp + 0x24]
cmp eax, dword [esi + 4]
jne 0x494909
call fcn.004b5f27
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
mov esi, dword [ecx + 0x28]
mov eax, ecx
cmp eax, dword [edx + 4]
jne 0x494920
call fcn.004b5f27
mov eax, dword [esp + 0x24]
push 0xffffffffffffffff
add eax, 0xc
push edi
push eax
lea ecx, [esp + 0x58]
mov dword [esp + 0x70], 7
mov dword [esp + 0x6c], edi
mov word [esp + 0x5c], di
call fcn.00403240
mov ecx, dword [esi + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
cmp dword [esp + 0x64], 8
jb 0x49496a
mov edx, dword [esp + 0x50]
push edx
call fcn.004a37b7
add esp, 4
lea ecx, [esp + 0x20]
mov dword [esp + 0x64], 7
mov dword [esp + 0x60], edi
mov word [esp + 0x50], di
call fcn.004408a0
mov esi, dword [esp + 0x20]
jmp 0x4948d0
mov eax, dword [ebx + 4]
mov ecx, dword [eax + 4]
push ecx
mov ecx, ebx
call fcn.00454e30
mov eax, dword [ebx + 4]
mov esi, dword [esp + 0x1c]
mov dword [eax + 4], eax
mov eax, dword [ebx + 4]
mov dword [ebx + 8], edi
mov dword [eax], eax
mov ebx, dword [ebx + 4]
mov dword [ebx + 8], ebx
mov edx, dword [esi + 0x30]
cmp edx, dword [esi + 0x34]
jbe 0x4949de
mov ecx, 0x631bd8
call fcn.00403bc0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x14]
call eax
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x98]
call eax
mov esi, dword [esp + 0x1c]
mov ecx, dword [esi + 0x2c]
mov edx, dword [ecx + 4]
add esi, 0x28
push edx
mov ecx, esi
call fcn.00454f40
mov eax, dword [esi + 4]
mov ebx, dword [esp + 0x1c]
mov dword [eax + 4], eax
mov eax, dword [esi + 4]
mov dword [esi + 8], edi
mov dword [eax], eax
mov esi, dword [esi + 4]
mov dword [esi + 8], esi
mov eax, dword [ebx + 0x3c]
mov ecx, dword [eax + 4]
lea esi, [ebx + 0x38]
push ecx
mov ecx, esi
call fcn.00454e30
mov eax, dword [esi + 4]
mov dword [eax + 4], eax
mov eax, dword [esi + 4]
mov dword [esi + 8], edi
mov dword [eax], eax
mov esi, dword [esi + 4]
mov ecx, 0x631bd8
mov dword [esi + 8], esi
call fcn.00403bc0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x14]
call eax
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x1c]
call eax
mov edx, dword [ebx]
mov eax, dword [edx + 0x14]
mov ecx, ebx
call eax
xor eax, eax
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x58]
xor ecx, esp
call fcn.004b4b34
mov esp, ebp
pop ebp
ret