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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x498c73
sub esp, 0x68
call fcn.004659e0
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x2c], ecx
mov edx, dword [esp]
mov dword [esp + 0x54], edx
mov ebx, dword [esp + 4]
mov dword [esp + 0x20], ebx
xor ebp, ebp
xor esi, esi
xor edi, edi
xor ebp, ebp
mov dword [esp + 0x5c], ebp
xor ebp, ebp
jmp 0x498a31
add eax, 0xc
inc ebp
mov ebx, dword [esp + 0x20]
mov edx, dword [esp + 0x54]
mov esi, dword [esp + 0x5c]
mov edi, dword [esp + 0x24]
mov esi, dword [esp + 0x28]
cmp ebp, ecx
jge 0x498a8c
mov dword [esp + 0x28], esi
mov dword [esp + 0x24], edi
mov esi, dword [eax + 4]
mov edi, dword [eax]
cmp ebp, ebx
jae 0x498c69
mov dword [esp + 0x30], ebp
mov dword [esp + 0x64], eax
mov dword [esp + 0x60], edi
mov dword [esp + 0x34], esi
mov edx, dword [edx + ebp*4]
mov dword [esp + 0x58], edx
mov dword [esp + 0x48], eax
xor eax, eax
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x48]
jmp 0x498ac6
mov esi, dword [esp + 0x34]
jmp 0x498b83
mov ecx, dword [esp + 0x70]
mov eax, dword [esp + 0x64]
mov ecx, dword [esp + 0x2c]
mov ebp, dword [esp + 0x30]
jmp 0x498a19
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], edi
mov dword [esp + 0x7c], esi
add esp, 0x68
ret
mov ecx, dword [esp + 0x34]
mov edi, dword [esp + 0x60]
mov ebx, dword [esp + 0x58]
mov ecx, dword [esp + 0x2c]
mov ebx, dword [esp + 0x20]
mov ebp, dword [esp + 0x30]
mov dword [esp + 0x38], edx
mov esi, eax
mov eax, dword [esp + 0x64]
mov edx, dword [esp + 0x58]
mov ebx, dword [esp + 0x38]
cmp esi, ebx
jle 0x498a71
mov dword [esp + 0x3c], esi
sub esi, ebx
sar esi, 1
lea ebp, [esi + ebx]
mov ebx, dword [esp + 0x34]
cmp ebx, ebp
jbe 0x498c60
mov dword [esp + 0x44], esi
mov dword [esp + 0x40], ebp
mov eax, dword [edi + ebp*4]
mov dword [esp], edx
mov dword [esp + 4], eax
call fcn.00498980
mov eax, dword [esp + 8]
mov dword [esp], eax
call fcn.00497c60
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
mov dword [esp], eax
mov dword [esp + 4], ecx
mov eax, dword [esp + 0x6c]
mov dword [esp + 8], eax
mov ecx, dword [esp + 0x70]
mov dword [esp + 0xc], ecx
call fcn.004033a0
mov eax, dword [esp + 0x10]
test eax, eax
jl 0x498b41
mov eax, dword [esp + 0x40]
mov edx, dword [esp + 0x38]
jmp 0x498aa0
mov edx, dword [esp + 0x38]
mov ebx, dword [esp + 0x44]
lea edx, [ebx + edx + 1]
mov eax, dword [esp + 0x3c]
jmp 0x498aa0
mov ebx, dword [esp + 0x38]
inc ebx
mov ebp, dword [esp + 0x58]
mov edi, dword [esp + 0x60]
mov esi, dword [esp + 0x34]
mov ebp, dword [esp + 0x30]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x5c], eax
mov dword [esp + 0x24], edx
mov eax, dword [esp + 0x64]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x58]
cmp ebx, esi
jge 0x498a19
jae 0x498c57
mov dword [esp + 0x38], ebx
mov eax, dword [edi + ebx*4]
mov dword [esp], edx
mov dword [esp + 4], eax
call fcn.00498980
mov eax, dword [esp + 8]
mov dword [esp + 0x50], eax
mov dword [esp], eax
call fcn.00497c60
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x70]
cmp dword [esp + 8], ecx
jne 0x498a7e
mov dword [esp], eax
mov eax, dword [esp + 0x6c]
mov dword [esp + 4], eax
call fcn.00403490
movzx eax, byte [esp + 0xc]
test al, al
je 0x498a7a
mov edx, dword [esp + 0x24]
inc edx
mov ebx, dword [esp + 0x28]
cmp ebx, edx
jb 0x498bf8
mov eax, dword [esp + 0x5c]
mov ecx, ebx
jmp 0x498c2a
mov eax, dword [esp + 0x5c]
mov dword [esp], eax
mov dword [esp + 4], edx
mov dword [esp + 8], ebx
mov dword [esp + 0xc], 1
lea eax, [0x50e6a0]
mov dword [esp + 0x10], eax
call fcn.0044f980
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov ebx, dword [0x61d360]
lea edi, [eax + edx*4 - 4]
test ebx, ebx
jne 0x498c45
mov ebx, dword [esp + 0x50]
mov dword [eax + edx*4 - 4], ebx
jmp 0x498b56
mov ebx, eax
mov eax, dword [esp + 0x50]
call fcn.00468980
mov eax, ebx
jmp 0x498b56
mov eax, ebx
mov ecx, esi
call fcn.00468a00
mov eax, ebp
mov ecx, ebx
call fcn.00468a00
mov eax, ebp
mov ecx, ebx
call fcn.00468a00
nop
call fcn.00467570
jmp fcn.004989d0