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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
lea eax, [esp - 0x20]
cmp eax, dword [ecx + 8]
jbe 0x498d93
sub esp, 0xa0
mov eax, dword [esp + 0xa4]
mov ecx, dword [eax + 0x60]
test ecx, ecx
jne 0x498d1d
mov ecx, dword [eax + 4]
mov edx, dword [eax]
mov ebx, dword [eax + 0x24]
mov ebp, dword [eax + 0x20]
mov dword [esp], edx
mov dword [esp + 4], ecx
mov dword [esp + 8], ebp
mov dword [esp + 0xc], ebx
call fcn.004981f0
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov ebx, dword [esp + 0x1c]
test eax, eax
jne 0x498ca4
mov edi, dword [esp + 0xa4]
mov dword [edi + 4], edx
mov ebx, dword [0x5c2560]
test ebx, ebx
jne 0x498c98
mov dword [edi], ecx
mov eax, dword [edi + 0x50]
test eax, eax
jne 0x498c44
mov eax, dword [edi + 0x5c]
mov ecx, dword [edi + 0x58]
test ecx, ecx
jne 0x498b95
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0
lea eax, [0x4f831c]
mov dword [esp + 0x70], eax
lea eax, [0x4f8320]
mov dword [esp + 0x74], eax
lea eax, [0x4f8318]
mov dword [esp + 0x78], eax
xor eax, eax
jmp 0x49861f
mov ecx, dword [esp + 0x3c]
lea eax, [ecx + 1]
mov edi, edx
cmp eax, 3
jge 0x49875c
mov dword [esp + 0x3c], eax
lea ecx, [esp + 0x70]
mov edx, dword [ecx + eax*4]
mov dword [esp], edi
mov ebx, dword [edx]
call ebx
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov ebx, dword [esp + 4]
test ecx, ecx
jne 0x4986e3
mov ecx, dword [esp + 0xa4]
mov ebp, dword [ecx + 0x70]
mov esi, dword [ecx + 0x6c]
mov eax, ebx
mov ebx, dword [ecx + 0x74]
mov edx, ecx
lea ecx, [ebp + 1]
cmp ecx, ebx
ja 0x498688
lea ecx, [ebp + 1]
mov dword [edx + 0x70], ecx
lea edi, [esi + ebp*4]
mov ecx, dword [0x5c2560]
test ecx, ecx
jne 0x498681
mov dword [esi + ebp*4], eax
jmp 0x498616
call fcn.0044a9c0
jmp 0x498616
mov dword [esp + 0x58], eax
lea eax, [0x4ea820]
mov dword [esp], eax
mov dword [esp + 4], esi
mov dword [esp + 8], ebp
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], ecx
call fcn.00436de0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov ebx, dword [esp + 0xa4]
mov dword [ebx + 0x74], edx
mov edx, dword [0x5c2560]
test edx, edx
jne 0x4986d9
mov dword [ebx + 0x6c], eax
mov edx, ebx
mov ebp, ecx
mov esi, eax
mov eax, dword [esp + 0x58]
jmp 0x498669
lea edi, [ebx + 0x6c]
call fcn.0044a9c0
jmp 0x4986cd
mov dword [esp + 0x4c], eax
mov dword [esp + 0x38], ecx
mov eax, dword [esp + 0xa4]
mov ecx, dword [eax + 0x80]
mov edx, dword [eax + 0x7c]
mov ebx, dword [eax + 0x78]
mov dword [esp], eax
mov dword [esp + 4], ebx
mov dword [esp + 8], edx
mov dword [esp + 0xc], ecx
call fcn.00498140
mov eax, dword [esp + 0xa4]
mov ecx, dword [eax + 0x84]
mov edx, dword [eax + 0x88]
mov ebx, dword [eax + 0x8c]
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
mov dword [esp + 0xc], ebx
call fcn.00498140
mov eax, dword [esp + 0x38]
mov dword [esp + 0xa8], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 0xac], eax
add esp, 0xa0
ret
mov eax, dword [edi + 0x70]
mov ecx, dword [edi + 0x44]
lea edx, [eax + ecx]
mov dword [esp + 0x3c], edx
mov ebx, dword [edi + 0x74]
mov ebp, dword [edi + 0x6c]
mov esi, dword [edi + 0x40]
mov edi, dword [edi + 0x48]
cmp edx, ebx
ja 0x498b46
cmp eax, edx
ja 0x498d8c
mov dword [esp + 0x64], ebp
mov dword [esp + 0x48], ebx
lea edx, [0x4ea820]
mov dword [esp], edx
sub ebx, eax
mov dword [esp + 0x44], ebx
neg ebx
shl eax, 2
sar ebx, 0x1f
and eax, ebx
add eax, ebp
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
mov eax, dword [esp + 0x44]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], edi
call fcn.0040e110
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0xa4]
mov dword [ecx + 0x70], eax
mov eax, dword [esp + 0x48]
mov dword [ecx + 0x74], eax
mov eax, dword [0x5c2560]
test eax, eax
jne 0x498b35
mov eax, dword [esp + 0x64]
mov dword [ecx + 0x6c], eax
nop
mov eax, dword [ecx + 8]
mov edx, dword [ecx + 0xc]
mov ebx, dword [ecx + 0x10]
test edx, edx
jle 0x498b05
mov dword [esp + 0x64], eax
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x28], edx
nop
mov ebp, dword [ecx + 0x14]
mov esi, dword [ecx + 0x18]
mov edi, dword [ecx + 0x1c]
test ebp, ebp
je 0x498aef
nop
mov byte [esp], 1
mov dword [esp + 4], ebp
mov dword [esp + 8], esi
mov dword [esp + 0xc], edi
call fcn.00499950
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x24], ecx
mov edx, dword [esp + 0x18]
lea edi, [esp + 0x7c]
mov ebx, eax
xor eax, eax
call fcn.0044aab7
mov eax, dword [esp + 0xa4]
mov ecx, dword [eax + 0x20]
mov ebp, dword [eax + 0x24]
mov dword [esp + 0x7c], ecx
mov dword [esp + 0x80], ebp
mov ecx, dword [eax + 0x6c]
mov ebp, dword [eax + 0x70]
mov esi, dword [eax + 0x74]
mov dword [esp + 0x90], ecx
mov dword [esp + 0x94], ebp
mov dword [esp + 0x98], esi
mov dword [esp + 0x84], ebx
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x88], ecx
mov dword [esp + 0x8c], edx
mov ecx, dword [eax + 0x4c]
mov dword [esp + 0x9c], ecx
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [esp], ecx
mov dword [esp + 4], edx
mov ecx, dword [esp + 0x64]
mov dword [esp + 8], ecx
mov ecx, dword [esp + 0x28]
mov dword [esp + 0xc], ecx
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x10], ecx
lea ecx, [esp + 0x7c]
mov dword [esp + 0x14], ecx
call fcn.00484ee0
mov eax, dword [0x5c2560]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x20]
mov ebx, dword [esp + 0x1c]
test eax, eax
jne 0x498ad7
mov eax, dword [esp + 0xa4]
mov dword [eax + 0x50], ecx
test ebx, ebx
jne 0x498a65
mov ecx, dword [eax + 0x7c]
mov edx, dword [eax + 0x80]
mov ebx, dword [eax + 0x78]
mov dword [esp], eax
mov dword [esp + 4], ebx
mov dword [esp + 8], ecx
mov dword [esp + 0xc], edx
call fcn.00498140
mov eax, dword [esp + 0xa4]
mov ecx, dword [eax + 0x94]
lea edx, [0x4cde80]
mov dword [esp], edx
mov dword [esp + 4], ecx
call fcn.00403d00
mov eax, dword [0x5c2560]
mov ecx, dword [esp + 8]
test eax, eax
jne 0x498a4a
mov eax, dword [esp + 0xa4]
mov dword [eax + 0x9c], ecx
mov ecx, dword [eax + 0x90]
mov dword [esp + 0x60], ecx
mov edx, dword [eax + 0x94]
mov dword [esp + 0x3c], edx
xor ebx, ebx
jmp 0x4989bd
mov dword [esp + 0x48], ebx
mov edx, dword [ecx + ebx*4]
mov dword [esp], 8
lea ebp, [0x4f8310]
mov dword [esp + 4], ebp
mov dword [esp + 8], eax
mov dword [esp + 0xc], edx
call fcn.0042e0f0
mov eax, dword [esp + 0x48]
lea ebx, [eax + 1]
mov eax, dword [esp + 0xa4]
mov ecx, dword [esp + 0x60]
mov edx, dword [esp + 0x3c]
cmp ebx, edx
jl 0x498982
mov ecx, dword [eax + 0x58]
test ecx, ecx
jne 0x4989e5
mov dword [esp + 0xa8], 0
mov dword [esp + 0xac], 0
add esp, 0xa0
ret
lea eax, [0x4cdf80]
mov dword [esp], eax
mov dword [esp + 4], 0
call fcn.00403d00
mov eax, dword [0x5c2560]
mov ecx, dword [esp + 8]
test eax, eax
jne 0x498a32
mov eax, dword [esp + 0xa4]
mov dword [eax + 0xa0], ecx
mov dword [esp], 4
lea ecx, [0x4f8314]
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
call fcn.0042e0f0
jmp 0x4989c8
mov edx, dword [esp + 0xa4]
lea edi, [edx + 0xa0]
mov eax, ecx
call fcn.0044a9c0
mov eax, edx
jmp 0x498a16
mov edx, dword [esp + 0xa4]
lea edi, [edx + 0x9c]
mov eax, ecx
call fcn.0044a9c0
mov eax, edx
jmp 0x49896a
mov dword [esp + 0x30], ebx
mov dword [esp + 0x50], edx
mov ecx, dword [eax + 0x7c]
mov edx, dword [eax + 0x80]
mov ebx, dword [eax + 0x78]
mov dword [esp], eax
mov dword [esp + 4], ebx
mov dword [esp + 8], ecx
mov dword [esp + 0xc], edx
call fcn.00498140
mov eax, dword [esp + 0xa4]
mov ecx, dword [eax + 0x84]
mov edx, dword [eax + 0x88]
mov ebx, dword [eax + 0x8c]
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
mov dword [esp + 0xc], ebx
call fcn.00498140
mov eax, dword [esp + 0x30]
mov dword [esp + 0xa8], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 0xac], eax
add esp, 0xa0
ret
mov ebp, dword [esp + 0xa4]
lea edi, [ebp + 0x50]
mov eax, ecx
call fcn.0044a9c0
mov eax, ebp
jmp 0x498904
nop
call fcn.004716d0
mov ebp, dword [esp]
mov esi, dword [esp + 4]
mov edi, dword [esp + 8]
jmp 0x498823
mov dword [esp + 0x68], 0
mov dword [esp + 0x6c], 0
mov ebp, dword [ecx]
mov esi, dword [ecx + 4]
mov dword [esp + 0x68], ebp
mov dword [esp + 0x6c], esi
lea eax, [esp + 0x68]
mov ebx, 1
mov edx, 1
jmp 0x498805
lea edi, [ecx + 0x6c]
mov eax, dword [esp + 0x64]
call fcn.0044a9c0
jmp 0x4987f3
mov dword [esp + 0x48], ecx
mov dword [esp + 0x5c], esi
mov dword [esp + 0x44], edi
mov dword [esp + 0x40], eax
lea ecx, [0x4ea820]
mov dword [esp], ecx
mov dword [esp + 4], ebp
mov dword [esp + 8], eax
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], edx
call fcn.00436de0
mov ebp, dword [esp + 0x14]
mov ebx, dword [esp + 0x1c]
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x3c]
mov esi, dword [esp + 0x5c]
mov edi, dword [esp + 0x44]
jmp 0x49877d
mov ecx, dword [ecx + 0x14]
mov dword [esp], eax
call ecx
mov dword [esp], 0
call fcn.004050d0
movzx eax, byte [esp + 8]
test al, al
jne 0x498bbe
mov edi, dword [esp + 0xa4]
jmp 0x4985dc
mov eax, dword [esp + 0xa4]
mov ecx, dword [eax + 0x80]
mov edx, dword [eax + 0x7c]
mov ebx, dword [eax + 0x78]
mov dword [esp], eax
mov dword [esp + 4], ebx
mov dword [esp + 8], edx
mov dword [esp + 0xc], ecx
call fcn.00498140
mov eax, dword [esp + 0xa4]
mov ecx, dword [eax + 0x84]
mov edx, dword [eax + 0x8c]
mov ebx, dword [eax + 0x88]
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], ebx
mov dword [esp + 0xc], edx
call fcn.00498140
mov eax, dword [esp + 0xa4]
mov ecx, dword [eax + 0x58]
mov eax, dword [eax + 0x5c]
mov ecx, dword [ecx + 0x18]
mov dword [esp], eax
call ecx
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
mov dword [esp + 0xa8], ecx
mov dword [esp + 0xac], eax
add esp, 0xa0
ret
nop
lea eax, [0x4d7c80]
mov dword [esp], eax
call fcn.004098b0
mov edi, dword [esp + 4]
mov dword [edi + 4], 0x15
mov eax, dword [0x5c2560]
test eax, eax
jne 0x498c8b
lea eax, [0x4f2492]
mov dword [edi], eax
lea eax, [0x50e9e0]
mov dword [esp + 0xa8], eax
mov dword [esp + 0xac], edi
add esp, 0xa0
ret
lea eax, [0x4f2492]
call fcn.0044a9c0
jmp 0x498c70
mov eax, ecx
call fcn.0044a9c0
jmp 0x4985c3
mov dword [esp + 0x34], eax
mov dword [esp + 0x54], ebx
mov eax, dword [esp + 0xa4]
mov ecx, dword [eax + 0x80]
mov edx, dword [eax + 0x7c]
mov ebx, dword [eax + 0x78]
mov dword [esp], eax
mov dword [esp + 4], ebx
mov dword [esp + 8], edx
mov dword [esp + 0xc], ecx
call fcn.00498140
mov eax, dword [esp + 0xa4]
mov ecx, dword [eax + 0x84]
mov edx, dword [eax + 0x88]
mov ebx, dword [eax + 0x8c]
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
mov dword [esp + 0xc], ebx
call fcn.00498140
mov eax, dword [esp + 0x34]
mov dword [esp + 0xa8], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 0xac], eax
add esp, 0xa0
ret
mov ecx, dword [eax + 0x80]
mov edx, dword [eax + 0x7c]
mov ebx, dword [eax + 0x78]
mov dword [esp], eax
mov dword [esp + 4], ebx
mov dword [esp + 8], edx
mov dword [esp + 0xc], ecx
call fcn.00498140
mov eax, dword [esp + 0xa4]
mov ecx, dword [eax + 0x8c]
mov edx, dword [eax + 0x88]
mov ebx, dword [eax + 0x84]
mov dword [esp], eax
mov dword [esp + 4], ebx
mov dword [esp + 8], edx
mov dword [esp + 0xc], ecx
call fcn.00498140
mov eax, dword [esp + 0xa4]
mov ecx, dword [eax + 0x60]
mov eax, dword [eax + 0x64]
mov dword [esp + 0xa8], ecx
mov dword [esp + 0xac], eax
add esp, 0xa0
ret
call fcn.004254a0
ud2
call fcn.00449270
jmp fcn.00498540