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

Disassembly:
push edi
push esi
push ebp
push ebx
mov ebx, dword [esp + 0x1c]
mov esi, dword [esp + 0x2c]
mov ebp, dword [esp + 0x18]
sub esp, 0x5c
lea eax, [ebx + ebx*2]
lea edx, [ebx + ebx]
mov ecx, dword [esp + 0xb0]
lea edi, [ebx + eax]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x28], edi
mov eax, dword [esp + 0xac]
mov edi, dword [esp + 0xa8]
mov dword [esp + 0x38], ecx
mov ecx, dword [esp + 0xa4]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x70]
mov dword [esp + 0x40], edi
mov dword [esp + 0x44], ecx
mov dword [esp + 0x30], eax
xor eax, eax
mov dword [esp + 0x34], edx
mov dword [esp + 0x50], eax
test esi, esi
jle 0x4983d0
add ebx, ebx
mov dword [esp + 0x4c], ebx
mov eax, dword [esp + 0x94]
mov edx, dword [esp + 0x30]
mov ecx, dword [esp + 0x4c]
mov ebx, dword [esp + 0x80]
mov esi, ebx
mov ebx, dword [eax]
mov dword [esp + 4], esi
mov eax, 0xffffffff
add eax, ebx
lea edx, [edx + ebx*2]
mov esi, dword [esp + 0x98]
mov dword [esp + 0x54], edx
sub edx, ecx
mov dword [esp + 0x48], eax
mov dword [esp], edx
mov eax, dword [esp + 0xa0]
mov edx, dword [esp + 0x40]
mov dword [esp + 8], esi
mov edi, dword [esp + 0xb4]
mov dword [esp + 0xc], eax
mov esi, ebp
mov dword [esp + 0x10], edx
call fcn.00497ce0
mov eax, dword [esp + 0x54]
mov edx, dword [esp + 0x80]
mov ecx, dword [esp + 0x98]
mov dword [esp], eax
mov eax, dword [esp + 0xa0]
mov dword [esp + 4], edx
mov edx, dword [esp + 0x3c]
mov dword [esp + 8], ecx
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], eax
call fcn.00497ce0
add ebx, ebx
mov eax, dword [esp + 0x78]
mov edx, dword [esp + 0x30]
mov ecx, dword [esp + 0x80]
lea ebx, [ebx + eax*2]
mov eax, dword [esp + 0x98]
add ebx, edx
mov edx, dword [esp + 0xa0]
mov dword [esp], ebx
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0x38]
mov dword [esp + 8], eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], edx
call fcn.00497ce0
xor ebx, ebx
mov eax, dword [esp + 0x84]
test eax, eax
jle 0x49839b
mov dword [esp + 0x58], ebp
mov eax, dword [esp + 0x94]
mov edx, dword [esp + 0x48]
mov ebp, dword [eax + ebx*4]
cmp ebp, edx
jle 0x498310
mov eax, dword [esp + 0x34]
mov edx, dword [esp + 0x30]
add eax, eax
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x10], ecx
lea eax, [eax + ebp*2]
add eax, edx
mov edx, dword [esp + 0x38]
mov dword [esp], eax
mov dword [esp + 0x38], ecx
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x44], eax
mov dword [esp + 0x40], ecx
mov dword [esp + 0x3c], edx
mov eax, dword [esp + 0x80]
mov edx, dword [esp + 0x98]
mov ecx, dword [esp + 0xa0]
mov dword [esp + 4], eax
mov dword [esp + 0xc], ecx
mov dword [esp + 8], edx
call fcn.00497ce0
mov eax, dword [esp + 0x48]
mov edx, dword [esp + 0x78]
lea eax, [eax + edx*2]
cmp ebp, eax
jl 0x49826e
lea eax, [ebp + ebp]
mov ecx, dword [esp + 0x30]
lea eax, [eax + edx*2]
mov edx, dword [esp + 0x44]
add eax, ecx
mov ecx, dword [esp + 0x3c]
mov dword [esp], eax
mov dword [esp + 0x3c], edx
mov eax, dword [esp + 0x40]
mov dword [esp + 0x10], edx
mov dword [esp + 0x44], eax
mov dword [esp + 0x40], ecx
mov eax, dword [esp + 0x80]
mov edx, dword [esp + 0x98]
mov ecx, dword [esp + 0xa0]
mov dword [esp + 4], eax
mov dword [esp + 0xc], ecx
mov dword [esp + 8], edx
call fcn.00497ce0
mov eax, dword [esp + 0x48]
mov edx, dword [esp + 0x2c]
add eax, edx
cmp ebp, eax
jl 0x4982c0
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x40]
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x44], edx
lea eax, [eax + ebp*2]
mov dword [esp + 0x40], ecx
mov dword [esp], eax
mov eax, dword [esp + 0x80]
mov dword [esp + 0x10], ecx
mov edx, dword [esp + 0x98]
mov ecx, dword [esp + 0xa0]
mov dword [esp + 4], eax
mov dword [esp + 0xc], ecx
mov dword [esp + 8], edx
call fcn.00497ce0
mov eax, dword [esp + 0x48]
mov edx, dword [esp + 0x28]
add eax, edx
cmp ebp, eax
jl 0x49830c
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x4c]
mov ecx, dword [esp + 0x80]
lea eax, [eax + ebp*2]
mov dword [esp + 4], ecx
sub eax, edx
mov edx, dword [esp + 0x98]
mov dword [esp], eax
mov eax, dword [esp + 0xa0]
mov ecx, dword [esp + 0x44]
mov dword [esp + 8], edx
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], eax
call fcn.00497ce0
mov dword [esp + 0x48], ebp
mov eax, dword [esp + 0x4c]
mov edx, dword [esp + 0xb4]
mov dword [esp + 0x4c], eax
test edx, edx
je 0x4983d8
mov eax, dword [esp + 0x80]
mov edx, dword [esp + 0x9c]
mov dword [esp], esi
mov dword [esp + 4], eax
mov edx, dword [edx + ebx*4]
mov eax, dword [esp + 0x44]
mov dword [esp + 8], edx
mov edx, dword [esp + 0x40]
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x10], edx
mov dword [esp + 0x1c], edi
mov dword [esp + 0x14], ecx
mov edx, dword [esp + 0xbc]
mov dword [esp + 0x18], eax
mov dword [esp + 0x20], edx
call fcn.00497ef0
mov eax, dword [esp + 0xb8]
add edi, eax
mov eax, dword [esp + 0x7c]
inc ebx
mov edx, dword [esp + 0x84]
lea esi, [esi + eax*2]
cmp ebx, edx
jl 0x49819b
mov ebp, dword [esp + 0x58]
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x8c]
mov ecx, dword [esp + 0x90]
mov ebx, dword [esp + 0x50]
lea eax, [eax + edx*2]
inc ebx
mov dword [esp + 0x30], eax
lea ebp, [ebp + ecx*2]
mov eax, dword [esp + 0x88]
mov dword [esp + 0x50], ebx
cmp ebx, eax
jl 0x4980b0
add esp, 0x5c
pop ebx
pop ebp
pop esi
pop edi
ret
mov edx, dword [esp + 0x80]
mov ecx, dword [esp + 0x9c]
mov dword [esp], esi
mov dword [esp + 4], edx
mov ecx, dword [ecx + ebx*4]
mov edx, dword [esp + 0x44]
mov dword [esp + 8], ecx
mov ecx, dword [esp + 0x40]
mov ebp, dword [esp + 0x3c]
mov dword [esp + 0xc], edx
mov edx, dword [esp + 0x38]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x18], edx
mov dword [esp + 0x14], ebp
call fcn.00497de0
jmp 0x498380