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

Disassembly:
sub esp, 0x14
mov eax, dword [0x51093c]
xor eax, esp
mov dword [esp + 0x10], eax
push ebx
mov ebx, ecx
push esi
mov esi, dword [esp + 0x20]
push edi
mov eax, dword [ebx + 8]
mov edi, dword [esp + 0x28]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], eax
test al, 1
je 0x494571
mov eax, dword [ebx + 0x78]
mov ecx, edi
push esi
and eax, 0xfffffffc
push eax
push 1
call fcn.0040f7b0
mov esi, eax
mov eax, dword [esp + 0x14]
test al, 2
je 0x494588
mov eax, dword [ebx + 0x7c]
mov ecx, edi
push esi
and eax, 0xfffffffc
push eax
push 2
call fcn.0040f7b0
mov esi, eax
lea eax, [ebx + 0x10]
push ebp
mov ecx, eax
mov dword [esp + 0x10], eax
call fcn.00416320
xor ebp, ebp
mov dword [esp + 0x14], eax
test eax, eax
jle 0x4945ff
mov ebx, eax
mov ecx, dword [esp + 0x10]
push ebp
call fcn.00414ff0
mov edx, dword [eax + 0x10]
mov dword [esp + 0x14], edx
cmp edx, 0x80
jge 0x4945e9
mov ecx, dword [edi]
sub ecx, esi
add ecx, 0xe
cmp ecx, edx
jl 0x4945e9
mov byte [esi], 0x1a
mov byte [esi + 1], dl
add esi, 2
cmp dword [eax + 0x14], 0x10
jb 0x4945d8
mov eax, dword [eax]
push edx
push eax
push esi
call fcn.004b9450
add esp, 0xc
add esi, dword [esp + 0x14]
jmp 0x4945f6
push esi
push eax
push 3
mov ecx, edi
call fcn.0041beb0
mov esi, eax
inc ebp
cmp ebp, ebx
jl 0x4945a3
mov ebx, dword [esp + 0x1c]
mov eax, dword [ebx + 0x24]
xor ebp, ebp
mov dword [esp + 0x10], eax
test eax, eax
je 0x494631
nop dword [eax]
mov eax, dword [ebx + 0x2c]
push edi
push esi
mov ecx, dword [eax + ebp*4 + 4]
mov eax, dword [ecx + 0xc]
push eax
push ecx
push 4
call fcn.0041e260
inc ebp
add esp, 0x14
mov esi, eax
cmp ebp, dword [esp + 0x10]
jb 0x494610
mov eax, dword [ebx + 0x34]
xor ebp, ebp
mov dword [esp + 0x10], eax
test eax, eax
je 0x494661
nop
mov eax, dword [ebx + 0x3c]
push edi
push esi
mov ecx, dword [eax + ebp*4 + 4]
mov eax, dword [ecx + 0xc]
push eax
push ecx
push 5
call fcn.0041e260
inc ebp
add esp, 0x14
mov esi, eax
cmp ebp, dword [esp + 0x10]
jb 0x494640
mov eax, dword [ebx + 0x44]
xor ebp, ebp
mov dword [esp + 0x10], eax
test eax, eax
je 0x494691
nop
mov eax, dword [ebx + 0x4c]
push edi
push esi
mov ecx, dword [eax + ebp*4 + 4]
mov eax, dword [ecx + 0xc]
push eax
push ecx
push 6
call fcn.0041e260
inc ebp
add esp, 0x14
mov esi, eax
cmp ebp, dword [esp + 0x10]
jb 0x494670
mov eax, dword [ebx + 0x54]
xor ebp, ebp
mov dword [esp + 0x10], eax
test eax, eax
je 0x4946c1
nop
mov eax, dword [ebx + 0x5c]
push edi
push esi
mov ecx, dword [eax + ebp*4 + 4]
mov eax, dword [ecx + 0xc]
push eax
push ecx
push 7
call fcn.0041e260
inc ebp
add esp, 0x14
mov esi, eax
cmp ebp, dword [esp + 0x10]
jb 0x4946a0
mov eax, dword [esp + 0x18]
test al, 8
je 0x4946eb
mov eax, dword [ebx + 0x84]
push edi
push esi
mov eax, dword [eax + 0x18]
push eax
push dword [ebx + 0x84]
push 8
call fcn.0041e260
mov esi, eax
add esp, 0x14
mov eax, dword [esp + 0x18]
test al, 0x10
je 0x49470d
mov eax, dword [ebx + 0x88]
push edi
push esi
mov eax, dword [eax + 0x18]
push eax
push dword [ebx + 0x88]
push 9
call fcn.0041e260
add esp, 0x14
mov esi, eax
lea eax, [ebx + 0x60]
mov ecx, eax
mov dword [esp + 0x10], eax
call fcn.00416310
xor ebp, ebp
mov dword [esp + 0x14], eax
test eax, eax
jle 0x494765
mov ebx, dword [esp + 0x10]
nop dword [eax]
cmp esi, dword [edi]
jb 0x49473e
push esi
mov ecx, edi
call fcn.0041a900
mov esi, eax
push ebp
mov ecx, ebx
call fcn.00414fc0
mov eax, dword [eax]
mov byte [esi], 0x50
inc esi
cdq
push esi
push edx
push eax
call fcn.0040f8a0
inc ebp
add esp, 0xc
mov esi, eax
cmp ebp, dword [esp + 0x14]
jl 0x494730
mov ebx, dword [esp + 0x1c]
lea eax, [ebx + 0x6c]
mov ecx, eax
mov dword [esp + 0x10], eax
call fcn.00416310
xor ebp, ebp
mov dword [esp + 0x14], eax
test eax, eax
jle 0x4947b6
mov ebx, dword [esp + 0x10]
cmp esi, dword [edi]
jb 0x49478f
push esi
mov ecx, edi
call fcn.0041a900
mov esi, eax
push ebp
mov ecx, ebx
call fcn.00414fc0
mov eax, dword [eax]
mov byte [esi], 0x58
inc esi
cdq
push esi
push edx
push eax
call fcn.0040f8a0
inc ebp
add esp, 0xc
mov esi, eax
cmp ebp, dword [esp + 0x14]
jl 0x494781
mov ebx, dword [esp + 0x1c]
test byte [esp + 0x18], 4
pop ebp
je 0x4947d4
mov eax, dword [ebx + 0x80]
mov ecx, edi
push esi
and eax, 0xfffffffc
push eax
push 0xc
call fcn.0040f7b0
mov esi, eax
test byte [ebx + 4], 1
je 0x494802
mov eax, dword [ebx + 4]
and eax, 0xfffffffc
push edi
add eax, 4
push esi
push eax
call fcn.00431aa0
add esp, 0xc
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.004a2135
add esp, 0x14
ret 8
mov ecx, dword [esp + 0x1c]
mov eax, esi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004a2135
add esp, 0x14
ret 8