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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x505cae
mov eax, dword fs:[0]
push eax
sub esp, 0x70
push ebx
push esi
push edi
mov eax, dword [0x549350]
xor eax, esp
push eax
lea eax, [esp + 0x80]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword [ebx]
sub eax, 0x10
call fcn.004102cd
add eax, 0x10
mov dword [esp + 0x10], eax
xor esi, esi
lea eax, [esp + 0x10]
mov dword [esp + 0x88], esi
call fcn.0040cdbb
lea eax, [esp + 0x10]
call fcn.0040ce11
lea eax, [esp + 0x10]
call fcn.0040ad8f
lea ecx, [esp + 0x30]
call fcn.0041162c
mov byte [esp + 0x88], 1
push dword [esp + 0x10]
lea eax, [esp + 0x34]
push 0x52e600
call fcn.0041156c
pop ecx
pop ecx
lea ecx, [esp + 0x2c]
call fcn.0041162c
mov byte [esp + 0x88], 2
push dword [esp + 0x30]
lea eax, [esp + 0x30]
push 0x52e60c
call fcn.0041156c
mov edi, dword [ebx + 0x30]
pop ecx
pop ecx
push esi
push dword [esp + 0x30]
call fcn.004955f5
mov eax, dword [ebx + 0x30]
call fcn.00495398
mov eax, dword [ebx + 0x30]
mov eax, dword [eax + 0x3588]
cmp eax, esi
je 0x494963
push 0xffffffffffffffff
push eax
call dword [0x5082b8]
mov eax, dword [ebx + 0x30]
cmp byte [eax + 0x3584], 0
je 0x494cea
mov eax, dword [eax + 0x357c]
cmp eax, esi
mov dword [esp + 0x18], eax
je 0x494cea
mov edi, dword [0x5082a0]
push eax
call edi
test eax, eax
jbe 0x494cea
push dword [esp + 0x18]
call edi
mov edi, eax
lea eax, [edi + 1]
push eax
call fcn.004dbcc5
pop ecx
mov dword [esp + 0x1c], eax
lea eax, [edi + 1]
push eax
push esi
push dword [esp + 0x24]
call fcn.004e37e0
add esp, 0xc
push edi
push dword [esp + 0x1c]
call dword [0x50830c]
push eax
push dword [esp + 0x24]
call fcn.004e4ee0
add esp, 0xc
push dword [esp + 0x18]
call dword [0x508314]
lea ecx, [esp + 0x60]
call fcn.0041162c
mov dword [esp + 0x64], esi
mov dword [esp + 0x68], esi
lea ecx, [esp + 0x60]
mov byte [esp + 0x88], 3
call fcn.0040e3ac
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x60]
push eax
call fcn.0049521c
test eax, eax
je 0x494cbb
mov dword [esp + 0x5c], esi
mov dword [esp + 0x58], esi
lea eax, [esp + 0x58]
push eax
push 0x52e640
lea ecx, [esp + 0x68]
mov byte [esp + 0x90], 4
call fcn.0040de9b
test eax, eax
je 0x494ca5
mov dword [esp + 0x54], esi
mov dword [esp + 0x50], esi
lea eax, [esp + 0x50]
push eax
push 0x522fd4
lea ecx, [esp + 0x60]
mov byte [esp + 0x90], 5
call fcn.00410a14
test eax, eax
je 0x494c8f
lea esi, [esp + 0x50]
call fcn.004109d0
and dword [esp + 0x18], 0
test eax, eax
mov dword [esp + 0x44], eax
jle 0x494c8d
xor esi, esi
mov dword [esp + 0x4c], esi
mov dword [esp + 0x48], esi
push dword [esp + 0x18]
lea edi, [esp + 0x50]
lea ecx, [esp + 0x54]
mov byte [esp + 0x8c], 6
call fcn.0041093f
test eax, eax
je 0x494c65
lea ecx, [esp + 0x28]
call fcn.0041162c
lea ecx, [esp + 0x14]
call fcn.0041162c
lea ecx, [esp + 0x24]
call fcn.0041162c
lea ecx, [esp + 0x20]
call fcn.0041162c
push 0x52e650
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x50]
mov byte [esp + 0x90], 0xa
call fcn.0041089c
lea edi, [esp + 0x28]
mov byte [esp + 0x88], 0xb
call fcn.004115b7
mov byte [esp + 0x88], 0xa
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
call fcn.0040d58f
push 0x52bda4
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x50]
call fcn.0041089c
lea edi, [esp + 0x14]
mov byte [esp + 0x88], 0xc
call fcn.004115b7
mov byte [esp + 0x88], 0xa
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
call fcn.0040d58f
push 0x52a5e0
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x50]
call fcn.0041089c
lea edi, [esp + 0x24]
mov byte [esp + 0x88], 0xd
call fcn.004115b7
mov byte [esp + 0x88], 0xa
mov eax, dword [esp + 0x3c]
add eax, 0xfffffff0
call fcn.0040d58f
push 0x50ef90
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0x50]
call fcn.0041089c
lea edi, [esp + 0x20]
mov byte [esp + 0x88], 0xe
call fcn.004115b7
mov eax, dword [esp + 0x40]
add eax, 0xfffffff0
call fcn.0040d58f
mov eax, dword [esp + 0x14]
cmp dword [eax - 0xc], esi
jle 0x494c35
lea ecx, [esp + 0x6c]
call fcn.0041162c
lea ecx, [esp + 0x70]
call fcn.0041162c
lea ecx, [esp + 0x74]
call fcn.0041162c
lea ecx, [esp + 0x78]
call fcn.0041162c
lea eax, [esp + 0x28]
lea edi, [esp + 0x6c]
mov byte [esp + 0x88], 0xf
call fcn.004115b7
lea eax, [esp + 0x24]
lea edi, [esp + 0x74]
call fcn.004115b7
lea eax, [esp + 0x14]
lea edi, [esp + 0x70]
call fcn.004115b7
lea eax, [esp + 0x20]
lea edi, [esp + 0x78]
call fcn.004115b7
lea eax, [esp + 0x6c]
push eax
lea esi, [ebx + 0xc]
call fcn.00494e99
lea esi, [esp + 0x6c]
call fcn.00402407
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
call fcn.0040d58f
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
call fcn.0040d58f
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
call fcn.0040d58f
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
call fcn.0040d58f
mov byte [esp + 0x88], 5
mov eax, dword [esp + 0x4c]
test eax, eax
je 0x494c7b
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
inc dword [esp + 0x18]
mov eax, dword [esp + 0x18]
cmp eax, dword [esp + 0x44]
jl 0x494a87
xor esi, esi
mov byte [esp + 0x88], 4
mov eax, dword [esp + 0x54]
cmp eax, esi
je 0x494ca5
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [esp + 0x88], 3
mov eax, dword [esp + 0x5c]
cmp eax, esi
je 0x494cbb
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 0x64]
cmp eax, esi
je 0x494ccd
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [esp + 0x64], esi
push dword [esp + 0x1c]
call fcn.004e04de
pop ecx
lea esi, [esp + 0x60]
mov byte [esp + 0x88], 2
call fcn.00410c02
xor esi, esi
mov edi, dword [ebx + 0x1c]
cmp edi, esi
je 0x494d1b
lea eax, [ebx + 0xc]
call fcn.004c40a9
test eax, eax
jbe 0x494d17
push 1
push esi
call fcn.00494d6e
neg eax
sbb eax, eax
neg eax
mov dword [ebx + 0x24], eax
mov dword [ebx + 0x20], 1
jmp 0x494d2d
cmp edi, esi
jne 0x494d2d
mov ecx, dword [ebx + 0x34]
cmp ecx, esi
je 0x494d2d
mov eax, dword [ecx]
push esi
push esi
push 0x1211
call dword [eax]
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
mov dword [ebx + 0x28], 1
call fcn.0040d58f
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
call fcn.0040d58f
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
call fcn.0040d58f
mov ecx, dword [esp + 0x80]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret