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

Disassembly:
push edi
push esi
push ebp
push ebx
mov esi, dword [esp + 0x1c]
mov ebp, dword [esp + 0x58]
mov edi, dword [esp + 0x18]
sub esp, 0x84
lea eax, [esi + esi*2]
mov edx, dword [esp + 0xbc]
mov ecx, dword [esp + 0x98]
mov dword [esp + 0x5c], edx
mov dword [esp + 0x38], ecx
mov ebx, dword [edx]
mov edx, dword [esp + 0xa8]
add ecx, ebx
mov dword [esp + 0x4c], edx
mov dword [esp + 0x6c], ecx
sub ecx, esi
mov dword [esp], ecx
lea ecx, [ebx - 1]
mov dword [esp + 0x64], ecx
mov ecx, dword [esp + 0xd8]
mov dword [esp + 0x50], ecx
mov ecx, dword [esp + 0xd4]
mov dword [esp + 0x54], ecx
mov ecx, dword [esp + 0xd0]
mov dword [esp + 0x58], ecx
mov dword [esp + 0x34], eax
add eax, esi
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0xcc]
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0xc8]
mov dword [esp + 0x44], eax
mov dword [esp + 0x74], edi
mov edi, dword [esp + 0xc0]
mov dword [esp + 0x40], edi
mov dword [esp + 0x78], esi
mov esi, dword [esp + 0xb4]
mov dword [esp + 0x3c], esi
mov dword [esp + 0x7c], ebp
mov ebp, dword [esp + 0xb0]
mov dword [esp + 4], edx
mov dword [esp + 8], ebp
mov dword [esp + 0x68], ebp
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ecx
mov ebp, dword [esp + 0x7c]
mov esi, dword [esp + 0x78]
mov edi, dword [esp + 0x74]
call fcn.00497430
mov eax, dword [esp + 0x6c]
mov edx, dword [esp + 0x4c]
mov ecx, dword [esp + 0x68]
mov dword [esp], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 4], edx
mov edx, dword [esp + 0x40]
mov dword [esp + 8], ecx
mov ecx, dword [esp + 0x44]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], ecx
call fcn.00497430
add ebx, esi
mov eax, dword [esp + 0x38]
mov edx, dword [esp + 0x4c]
add ebx, eax
mov eax, dword [esp + 0x68]
mov dword [esp], ebx
mov ecx, dword [esp + 0x3c]
mov dword [esp + 4], edx
mov edx, dword [esp + 0x40]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0xc], ecx
mov ecx, dword [esp + 0x50]
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], eax
call fcn.00497430
xor ebx, ebx
mov eax, dword [esp + 0xac]
test eax, eax
jle 0x497c3d
mov dword [esp + 0x48], esi
mov eax, dword [esp + 0x5c]
mov edx, dword [esp + 0x64]
mov esi, dword [eax + ebx*4]
cmp esi, edx
jle 0x497b9f
mov eax, dword [esp + 0x48]
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x60]
lea eax, [esi + eax*2]
mov dword [esp + 0x18], ecx
add eax, edx
mov edx, dword [esp + 0x50]
mov dword [esp], eax
mov dword [esp + 0x50], ecx
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x54]
mov dword [esp + 0x60], eax
mov dword [esp + 0x58], ecx
mov dword [esp + 0x54], edx
mov eax, dword [esp + 0x4c]
mov edx, dword [esp + 0x68]
mov ecx, dword [esp + 0x3c]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 8], edx
mov edx, dword [esp + 0x44]
mov dword [esp + 0xc], ecx
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], eax
call fcn.00497430
mov eax, dword [esp + 0x64]
mov edx, dword [esp + 0x48]
lea eax, [eax + edx*2]
cmp esi, eax
jl 0x497af1
mov eax, dword [esp + 0x60]
mov edx, dword [esp + 0x54]
mov dword [esp + 0x54], eax
mov ecx, dword [esp + 0x48]
mov dword [esp + 0x18], eax
add ecx, esi
mov eax, dword [esp + 0x38]
add ecx, eax
mov eax, dword [esp + 0x58]
mov dword [esp], ecx
mov dword [esp + 0x60], eax
mov dword [esp + 0x58], edx
mov eax, dword [esp + 0x4c]
mov edx, dword [esp + 0x68]
mov ecx, dword [esp + 0x3c]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 8], edx
mov edx, dword [esp + 0x44]
mov dword [esp + 0xc], ecx
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], eax
call fcn.00497430
mov eax, dword [esp + 0x64]
mov edx, dword [esp + 0x34]
add eax, edx
cmp esi, eax
jl 0x497b49
mov eax, dword [esp + 0x58]
mov edx, dword [esp + 0x60]
mov dword [esp + 0x60], eax
mov dword [esp + 0x58], edx
mov eax, dword [esp + 0x38]
mov dword [esp + 0x18], edx
add eax, esi
mov edx, dword [esp + 0x4c]
mov ecx, dword [esp + 0x68]
mov dword [esp], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 4], edx
mov edx, dword [esp + 0x40]
mov dword [esp + 8], ecx
mov ecx, dword [esp + 0x44]
mov dword [esp + 0xc], eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], edx
call fcn.00497430
mov eax, dword [esp + 0x64]
mov edx, dword [esp + 0x30]
add eax, edx
cmp esi, eax
jl 0x497b9b
mov eax, dword [esp + 0x38]
mov edx, dword [esp + 0x48]
add eax, esi
mov ecx, dword [esp + 0x4c]
sub eax, edx
mov edx, dword [esp + 0x68]
mov dword [esp], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0x40]
mov dword [esp + 8], edx
mov edx, dword [esp + 0x44]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x60]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], edx
call fcn.00497430
mov dword [esp + 0x64], esi
mov eax, dword [esp + 0x68]
mov edx, dword [esp + 0xb8]
cmp eax, edx
jne 0x497bb8
test ebp, ebp
je 0x497c48
jmp 0x497bc0
test ebp, ebp
je 0x497c8d
mov eax, edx
mov edx, dword [esp + 0x68]
mov ecx, dword [esp + 0x4c]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0xc4]
mov dword [esp + 8], edx
mov dword [esp], edi
mov dword [esp + 4], ecx
mov eax, dword [eax + ebx*4]
mov edx, dword [esp + 0x60]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x54]
mov dword [esp + 0x14], edx
mov edx, dword [esp + 0x50]
mov dword [esp + 0x18], eax
mov dword [esp + 0x24], ebp
mov dword [esp + 0x1c], ecx
mov eax, dword [esp + 0xe4]
mov dword [esp + 0x20], edx
mov dword [esp + 0x28], eax
call fcn.004976f0
mov eax, dword [esp + 0xe0]
add ebp, eax
mov eax, dword [esp + 0xa4]
inc ebx
add edi, eax
mov eax, dword [esp + 0xac]
cmp ebx, eax
jl 0x497a16
add esp, 0x84
pop ebx
pop ebp
pop esi
pop edi
ret
mov edx, dword [esp + 0x4c]
mov ecx, eax
mov esi, dword [esp + 0xc4]
mov dword [esp], edi
imul edx, ecx
mov ecx, dword [esp + 0x60]
mov dword [esp + 4], edx
mov esi, dword [esi + ebx*4]
mov dword [esp + 0xc], ecx
mov dword [esp + 8], esi
mov edx, dword [esp + 0x58]
mov ecx, dword [esp + 0x54]
mov esi, dword [esp + 0x50]
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], esi
mov dword [esp + 0x14], ecx
call fcn.00496e20
jmp 0x497c24
mov ecx, eax
mov esi, dword [esp + 0x4c]
mov dword [esp + 0xc], edx
mov edx, dword [esp + 0xc4]
mov dword [esp + 8], ecx
mov dword [esp], edi
mov dword [esp + 4], esi
mov edx, dword [edx + ebx*4]
mov ecx, dword [esp + 0x60]
mov dword [esp + 0x10], edx
mov edx, dword [esp + 0x58]
mov esi, dword [esp + 0x54]
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x50]
mov dword [esp + 0x18], edx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x1c], esi
call fcn.00497570
jmp 0x497c24