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

Disassembly:
push 0xffffffffffffffff
push 0x4d93f8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x5c
push ebx
push ebp
mov ebp, ecx
push esi
push edi
mov edi, dword [esp + 0x7c]
mov eax, dword [ebp + 0x389c]
lea esi, [ebp + 0x389c]
xor ebx, ebx
push edi
push eax
mov dword [esp + 0x38], ebp
mov dword [esp + 0x48], ebx
call dword [0x4db3e8]
add esp, 8
test eax, eax
je 0x494eee
mov ecx, ebp
call fcn.004944e0
cmp edi, ebx
jne 0x494ef6
xor eax, eax
jmp 0x494efd
push edi
call dword [0x4db2d0]
push edi
push eax
mov ecx, esi
call fcn.00407780
lea ecx, [esp + 0x50]
call fcn.0043cb20
mov ecx, ebp
mov dword [esp + 0x74], ebx
call fcn.0049f3a0
push eax
lea ecx, [esp + 0x54]
call fcn.0043d060
mov eax, dword [esp + 0x5c]
cmp eax, ebx
jne 0x494f30
xor edi, edi
jmp 0x494f39
mov edi, dword [esp + 0x60]
sub edi, eax
sar edi, 2
xor esi, esi
cmp edi, ebx
mov dword [esp + 0x2c], edi
mov dword [esp + 0x20], esi
jle 0x494f5d
mov ecx, dword [ebp + 0x3894]
cmp dword [eax], ecx
je 0x494f5f
inc esi
add eax, 4
cmp esi, edi
jl 0x494f4d
mov dword [esp + 0x20], esi
xor esi, esi
push 0xffffffffffffffff
push 0x4fcd88
mov dword [esp + 0x28], esi
call fcn.004954d0
push 0xffffffffffffffff
push 0x4fcd7c
mov dword [esp + 0x4c], eax
call fcn.004954d0
add esp, 0x10
mov dword [esp + 0x1c], eax
mov dword [esp + 0x48], ebx
cmp esi, edi
jge 0x495345
lea eax, [esi + 1]
mov dword [esp + 0x38], eax
mov dword [esp + 0x18], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], ebx
mov ecx, dword [esp + 0x5c]
lea eax, [esp + 0x24]
push eax
mov byte [esp + 0x78], 3
mov ebp, dword [ecx + esi*4]
mov dword [esp + 0x28], ebx
push ebp
mov dword [esp + 0x54], ebp
mov edx, dword [ebp]
call dword [edx + 0x24]
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0x18]
call fcn.00497920
cmp eax, ebx
jge 0x494fe8
cmp eax, 0x80004002
je 0x494fe8
push eax
call fcn.004d2dd2
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x4952f7
mov ecx, dword [esp + 0x10]
cmp ecx, ebx
je 0x495006
mov edx, dword [ecx]
push ecx
call dword [edx + 8]
mov eax, dword [esp + 0x14]
cmp eax, ebx
mov dword [esp + 0x10], ebx
jne 0x49501c
push 0x80004003
call fcn.004d2dd2
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
lea edx, [esp + 0x10]
push edx
push eax
call dword [ecx + 0xa4]
mov eax, dword [esp + 0x10]
cmp eax, ebx
jne 0x495040
push 0x80004003
call fcn.004d2dd2
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
lea edx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x20]
push ebx
push edx
push eax
call dword [ecx + 0x48]
mov eax, dword [esp + 0x10]
cmp eax, ebx
jne 0x495067
push 0x80004003
call fcn.004d2dd2
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
lea edx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x20]
push ebx
push edx
push eax
call dword [ecx + 0x4c]
mov eax, dword [esp + 0x30]
lea edi, [eax + 0x3898]
mov eax, dword [eax + 0x3898]
cmp eax, ebx
jne 0x4950b1
mov eax, dword [esp + 0x14]
cmp eax, ebx
jne 0x4950a2
push 0x80004003
call fcn.004d2dd2
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
push edi
push eax
call dword [ecx + 0xa4]
jmp 0x495266
lea ecx, [esp + 0x34]
mov dword [esp + 0x34], ebx
mov edx, dword [eax]
push ecx
push eax
call dword [edx + 0x24]
mov eax, dword [esp + 0x34]
cmp eax, ebx
je 0x495209
push eax
call dword [0x4db410]
add esp, 4
test eax, eax
je 0x495209
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x4950ec
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov eax, dword [edi]
lea edx, [esp + 0x10]
mov dword [esp + 0x10], ebx
push edx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x2c]
mov eax, dword [esp + 0x10]
cmp eax, ebx
jne 0x495113
push 0x80004003
call fcn.004d2dd2
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
lea edx, [esp + 0x28]
push edx
push eax
call dword [ecx + 0x24]
cmp dword [esp + 0x28], ebx
je 0x495257
mov eax, dword [esp + 0x84]
cmp eax, ebx
mov eax, dword [esp + 0x10]
jne 0x495195
cmp eax, ebx
jne 0x495149
push 0x80004003
call fcn.004d2dd2
mov eax, dword [esp + 0x10]
mov ebp, dword [eax]
mov ecx, dword [esp + 0x28]
mov esi, eax
lea eax, [esp + 0x18]
push eax
push ecx
call dword [0x4db410]
mov edx, dword [esp + 0x44]
add esp, 4
inc eax
push eax
push edx
push esi
call dword [ebp + 0x48]
mov eax, dword [esp + 0x10]
cmp eax, ebx
jne 0x495181
push 0x80004003
call fcn.004d2dd2
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
lea edx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x20]
push 1
push edx
push eax
call dword [ecx + 0x4c]
jmp 0x4951f4
cmp eax, ebx
jne 0x4951a7
push 0x80004003
call fcn.004d2dd2
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
lea edx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x20]
push ebx
push edx
push eax
call dword [ecx + 0x48]
mov eax, dword [esp + 0x10]
cmp eax, ebx
jne 0x4951ce
push 0x80004003
call fcn.004d2dd2
mov eax, dword [esp + 0x10]
mov ebp, dword [eax]
mov ecx, dword [esp + 0x28]
mov esi, eax
lea eax, [esp + 0x18]
push eax
push ecx
call dword [0x4db410]
or edx, 0xffffffff
add esp, 4
sub edx, eax
mov eax, dword [esp + 0x40]
push edx
push eax
push esi
call dword [ebp + 0x4c]
mov ecx, dword [esp + 0x28]
push ecx
call dword [0x4db53c]
mov esi, dword [esp + 0x20]
mov ebp, dword [esp + 0x4c]
jmp 0x495257
mov eax, dword [esp + 0x10]
cmp eax, ebx
jne 0x49521f
push 0x80004003
call fcn.004d2dd2
mov eax, dword [esp + 0x10]
mov edx, dword [eax]
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x20]
push ebx
push ecx
push eax
call dword [edx + 0x48]
mov eax, dword [esp + 0x10]
cmp eax, ebx
jne 0x495246
push 0x80004003
call fcn.004d2dd2
mov eax, dword [esp + 0x10]
mov edx, dword [eax]
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x20]
push ebx
push ecx
push eax
call dword [edx + 0x4c]
mov eax, dword [esp + 0x34]
cmp eax, ebx
je 0x495266
push eax
call dword [0x4db53c]
mov eax, dword [esp + 0x10]
mov dword [esp + 0x44], 0xffffffff
cmp eax, ebx
jne 0x495284
push 0x80004003
call fcn.004d2dd2
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x44]
mov edx, dword [eax]
push ecx
mov ecx, dword [esp + 0x84]
push ecx
mov ecx, dword [esp + 0x8c]
neg ecx
sbb ecx, ecx
and ecx, 0xfffffffe
inc ecx
push ecx
mov ecx, dword [esp + 0x88]
push ecx
push eax
call dword [edx + 0x64]
cmp word [esp + 0x44], 0xffff
je 0x495366
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x38]
cmp eax, edx
jge 0x4952db
mov eax, dword [esp + 0x5c]
mov edx, dword [esp + 0x30]
mov ecx, dword [eax + esi*4 + 4]
mov dword [edx + 0x3894], ecx
jmp 0x4952e5
mov eax, dword [esp + 0x30]
mov dword [eax + 0x3894], ebx
mov eax, dword [edi]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [esp + 0x14]
mov dword [edi], ebx
mov edi, dword [esp + 0x2c]
mov ecx, dword [esp + 0x10]
mov byte [esp + 0x74], 2
cmp ecx, ebx
je 0x49530e
mov edx, dword [ecx]
push ecx
call dword [edx + 8]
mov eax, dword [esp + 0x14]
cmp eax, ebx
mov byte [esp + 0x74], 1
je 0x49531d
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 0x24]
mov byte [esp + 0x74], bl
cmp eax, ebx
je 0x49532f
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov ecx, dword [esp + 0x38]
inc esi
inc ecx
cmp esi, edi
mov dword [esp + 0x20], esi
mov dword [esp + 0x38], ecx
jl 0x494f99
mov eax, dword [esp + 0x48]
xor esi, esi
inc eax
mov dword [esp + 0x20], esi
cmp eax, 2
mov dword [esp + 0x48], eax
jge 0x495484
mov edi, dword [esp + 0x2c]
jmp 0x494f8a
mov al, byte [esp + 0x80]
mov dword [esp + 0x40], 1
test al, 0x20
jne 0x49541f
mov eax, dword [esp + 0x10]
mov byte [esp + 0x74], 4
cmp eax, ebx
mov dword [esp + 0x84], ebx
jne 0x49539f
push 0x80004003
call fcn.004d2dd2
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
lea edx, [esp + 0x84]
push edx
push eax
call dword [ecx + 0x28]
mov eax, dword [esp + 0x84]
cmp eax, ebx
je 0x495410
push eax
call fcn.0043d3d0
add esp, 4
test eax, eax
je 0x495401
mov eax, dword [esp + 0x10]
cmp eax, ebx
jne 0x4953db
push 0x80004003
call fcn.004d2dd2
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x50]
mov eax, dword [esp + 0x10]
cmp eax, ebx
jne 0x4953f7
push 0x80004003
call fcn.004d2dd2
mov eax, dword [esp + 0x10]
mov edx, dword [eax]
push 1
push eax
call dword [edx + 0x38]
jmp 0x495409
mov dword [esp + 0x40], 2
mov eax, dword [esp + 0x84]
cmp eax, ebx
mov byte [esp + 0x74], 3
je 0x49541f
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 0x10]
cmp eax, ebx
jne 0x495435
push 0x80004003
call fcn.004d2dd2
mov eax, dword [esp + 0x10]
mov esi, dword [esp + 0x30]
mov edx, dword [eax]
lea ecx, [esi + 0x3898]
push ecx
push eax
call dword [edx + 0x2c]
mov eax, dword [esp + 0x10]
mov dword [esi + 0x3894], ebp
cmp eax, ebx
mov byte [esp + 0x74], 2
je 0x49545f
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov eax, dword [esp + 0x14]
mov byte [esp + 0x74], 1
cmp eax, ebx
je 0x495472
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 0x24]
mov byte [esp + 0x74], bl
cmp eax, ebx
je 0x495484
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov eax, dword [esp + 0x3c]
cmp eax, ebx
je 0x495493
push eax
call dword [0x4db53c]
mov eax, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
cmp eax, ebx
pop ebx
je 0x4954a6
push eax
call dword [0x4db53c]
lea ecx, [esp + 0x40]
mov dword [esp + 0x64], 0xffffffff
call fcn.0043cb70
mov ecx, dword [esp + 0x5c]
mov eax, dword [esp + 0x30]
mov dword fs:[0], ecx
add esp, 0x68
ret 0xc