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

Disassembly:
push edi
push esi
push ebp
push ebx
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x2c]
sub esp, 0x54
xor eax, eax
lea edx, [ebx + ebx*2]
mov ecx, dword [esp + 0xa8]
lea esi, [ebx + edx]
mov dword [esp + 0x2c], edx
mov dword [esp + 0x28], esi
mov edx, dword [esp + 0xa4]
mov esi, dword [esp + 0xa0]
mov dword [esp + 0x34], ecx
mov ecx, dword [esp + 0x9c]
mov dword [esp + 0x38], edx
mov edx, dword [esp + 0x6c]
mov dword [esp + 0x3c], esi
mov esi, dword [esp + 0x68]
mov dword [esp + 0x40], ecx
mov dword [esp + 0x50], edx
mov dword [esp + 0x30], esi
mov dword [esp + 0x4c], eax
test ebp, ebp
jle 0x4973db
mov dword [esp + 0x48], ebx
mov eax, dword [esp + 0x8c]
mov ebp, dword [esp + 0x30]
mov edx, dword [esp + 0x48]
mov ecx, dword [esp + 0x78]
mov ebx, dword [eax]
mov dword [esp + 4], ecx
add ebp, ebx
mov eax, 0xffffffff
add eax, ebx
mov ecx, ebp
sub ecx, edx
mov edx, dword [esp + 0x90]
mov dword [esp], ecx
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x98]
mov ecx, dword [esp + 0x3c]
mov dword [esp + 8], edx
mov esi, dword [esp + 0x50]
mov dword [esp + 0xc], eax
mov edi, dword [esp + 0xac]
mov dword [esp + 0x10], ecx
call fcn.00496d10
mov eax, dword [esp + 0x78]
mov edx, dword [esp + 0x90]
mov ecx, dword [esp + 0x98]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 8], edx
mov dword [esp + 0x10], eax
mov dword [esp], ebp
mov dword [esp + 0xc], ecx
call fcn.00496d10
mov eax, dword [esp + 0x70]
mov edx, dword [esp + 0x30]
add eax, ebx
mov ecx, dword [esp + 0x78]
add eax, edx
mov edx, dword [esp + 0x90]
mov dword [esp], eax
mov eax, dword [esp + 0x98]
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0x34]
mov dword [esp + 8], edx
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], eax
call fcn.00496d10
xor ebx, ebx
mov eax, dword [esp + 0x7c]
test eax, eax
jle 0x4973a1
mov eax, dword [esp + 0x8c]
mov edx, dword [esp + 0x44]
mov ebp, dword [eax + ebx*4]
cmp ebp, edx
jle 0x497321
mov eax, dword [esp + 0x70]
mov edx, dword [esp + 0x30]
mov ecx, dword [esp + 0x40]
lea eax, [ebp + eax*2]
mov dword [esp + 0x10], ecx
add eax, edx
mov edx, dword [esp + 0x34]
mov dword [esp], eax
mov dword [esp + 0x34], ecx
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x40], eax
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x38], edx
mov eax, dword [esp + 0x78]
mov edx, dword [esp + 0x90]
mov ecx, dword [esp + 0x98]
mov dword [esp + 4], eax
mov dword [esp + 0xc], ecx
mov dword [esp + 8], edx
call fcn.00496d10
mov eax, dword [esp + 0x44]
mov edx, dword [esp + 0x70]
lea eax, [eax + edx*2]
cmp ebp, eax
jl 0x497287
mov eax, dword [esp + 0x40]
mov edx, dword [esp + 0x38]
mov dword [esp + 0x38], eax
mov ecx, dword [esp + 0x70]
mov dword [esp + 0x10], eax
add ecx, ebp
mov eax, dword [esp + 0x30]
add ecx, eax
mov eax, dword [esp + 0x3c]
mov dword [esp], ecx
mov dword [esp + 0x40], eax
mov dword [esp + 0x3c], edx
mov eax, dword [esp + 0x78]
mov edx, dword [esp + 0x90]
mov ecx, dword [esp + 0x98]
mov dword [esp + 4], eax
mov dword [esp + 0xc], ecx
mov dword [esp + 8], edx
call fcn.00496d10
mov eax, dword [esp + 0x44]
mov edx, dword [esp + 0x2c]
add eax, edx
cmp ebp, eax
jl 0x4972d5
mov eax, dword [esp + 0x3c]
mov edx, dword [esp + 0x40]
mov dword [esp + 0x40], eax
mov dword [esp + 0x3c], edx
mov eax, dword [esp + 0x30]
mov dword [esp + 0x10], edx
add eax, ebp
mov edx, dword [esp + 0x78]
mov ecx, dword [esp + 0x90]
mov dword [esp], eax
mov eax, dword [esp + 0x98]
mov dword [esp + 4], edx
mov dword [esp + 0xc], eax
mov dword [esp + 8], ecx
call fcn.00496d10
mov eax, dword [esp + 0x44]
mov edx, dword [esp + 0x28]
add eax, edx
cmp ebp, eax
jl 0x49731d
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x48]
add eax, ebp
mov ecx, dword [esp + 0x78]
sub eax, edx
mov edx, dword [esp + 0x90]
mov dword [esp], eax
mov eax, dword [esp + 0x98]
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0x40]
mov dword [esp + 8], edx
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], eax
call fcn.00496d10
mov dword [esp + 0x44], ebp
mov eax, dword [esp + 0x48]
mov edx, dword [esp + 0xac]
mov dword [esp + 0x48], eax
test edx, edx
je 0x4973e3
mov eax, dword [esp + 0x78]
mov edx, dword [esp + 0x94]
mov dword [esp], esi
mov dword [esp + 4], eax
mov edx, dword [edx + ebx*4]
mov eax, dword [esp + 0x40]
mov dword [esp + 8], edx
mov edx, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x10], edx
mov dword [esp + 0x1c], edi
mov dword [esp + 0x14], ecx
mov edx, dword [esp + 0xb4]
mov dword [esp + 0x18], eax
mov dword [esp + 0x20], edx
call fcn.00496f30
mov eax, dword [esp + 0xb0]
add edi, eax
mov eax, dword [esp + 0x74]
inc ebx
add esi, eax
mov eax, dword [esp + 0x7c]
cmp ebx, eax
jl 0x4971bc
mov eax, dword [esp + 0x84]
mov edx, dword [esp + 0x30]
mov ecx, dword [esp + 0x88]
add eax, edx
mov edx, dword [esp + 0x50]
mov dword [esp + 0x30], eax
add ecx, edx
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x50], ecx
inc eax
mov edx, dword [esp + 0x80]
mov dword [esp + 0x4c], eax
cmp eax, edx
jl 0x4970eb
add esp, 0x54
pop ebx
pop ebp
pop esi
pop edi
ret
mov edx, dword [esp + 0x78]
mov ecx, dword [esp + 0x94]
mov dword [esp], esi
mov dword [esp + 4], edx
mov ecx, dword [ecx + ebx*4]
mov edx, dword [esp + 0x40]
mov dword [esp + 8], ecx
mov ecx, dword [esp + 0x3c]
mov ebp, dword [esp + 0x38]
mov dword [esp + 0xc], edx
mov edx, dword [esp + 0x34]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x18], edx
mov dword [esp + 0x14], ebp
call fcn.00496e20
jmp 0x49738e