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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x498bfe
sub esp, 0x7c
mov dword [esp + 0x8c], 0
mov dword [esp + 0x90], 0
mov ecx, dword [esp + 0x84]
mov edx, dword [esp + 0x80]
test ecx, ecx
ja 0x4987a6
jmp 0x498bf6
mov edx, dword [edx + 4]
mov dword [esp + 0x2c], edx
cmp edx, 2
sete dl
mov byte [esp + 0x27], dl
je 0x4987bb
jmp 0x4987ee
mov ecx, dword [esp + 0x84]
mov edx, dword [esp + 0x80]
test ecx, ecx
ja 0x4987d2
jmp 0x498bef
mov ecx, dword [edx + 4]
mov edx, dword [edx]
cmp ecx, 1
ja 0x4987e1
jmp 0x498be5
cmp byte [edx + 1], 0x3a
sete dl
mov byte [esp + 0x27], dl
jmp 0x4987f0
jmp 0x4987f0
movzx edx, byte [esp + 0x27]
test dl, dl
jne 0x4987fb
jmp 0x498808
mov dword [esp + 0x28], 1
jmp 0x498a90
jmp 0x49880a
mov eax, dword [esp + 0x80]
mov ecx, dword [esp + 0x84]
mov edx, dword [esp + 0x88]
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
lea eax, [0x4b0c89]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], 1
call fcn.00495490
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], ecx
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.00497280
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], ecx
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.00498c10
movzx eax, byte [esp + 8]
mov byte [esp + 0x27], al
test al, al
jne 0x498893
jmp 0x498a5e
jmp 0x498895
mov ecx, dword [esp + 0x84]
mov edx, dword [esp + 0x80]
test ecx, ecx
ja 0x4988ac
jmp 0x498a89
mov eax, dword [edx]
mov ecx, dword [edx + 4]
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], ecx
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.00497280
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], ecx
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.00498c10
movzx eax, byte [esp + 8]
mov byte [esp + 0x27], al
test al, al
jne 0x4988f0
jmp 0x49890a
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x8c], eax
mov dword [esp + 0x90], ecx
add esp, 0x7c
ret
jmp 0x49890c
mov ecx, dword [esp + 0x84]
mov edx, dword [esp + 0x80]
mov ebx, dword [esp + 0x88]
jmp 0x498923
cmp ecx, 1
jae 0x49892d
jmp 0x498a7f
lea eax, [ebx - 1]
mov ebx, eax
neg eax
sar eax, 0x1f
and eax, 8
add eax, edx
mov dword [esp + 0x70], eax
dec ecx
mov dword [esp + 0x74], ecx
mov dword [esp + 0x78], ebx
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], ebx
lea eax, [0x4b0c89]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], 1
call fcn.00495490
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], ecx
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.00497280
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov eax, dword [esp + 0x44]
mov dword [esp + 0x2c], eax
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x40]
lea ebx, [eax - 1]
cmp ecx, ebx
ja 0x4989b3
jmp 0x498a78
lea eax, [eax + edx - 1]
cmp byte [eax], 0x5c
je 0x4989be
jmp 0x498a04
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x44]
mov ebx, dword [esp + 0x34]
mov dword [esp], 0
mov dword [esp + 4], eax
mov dword [esp + 8], edx
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], ebx
call fcn.0044b920
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x8c], eax
mov dword [esp + 0x90], ecx
add esp, 0x7c
ret
jmp 0x498a06
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x44]
mov ebx, dword [esp + 0x34]
mov dword [esp], 0
mov dword [esp + 4], eax
mov dword [esp + 8], edx
lea eax, [0x4b0c89]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], 1
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], ebx
call fcn.0044b9c0
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x8c], eax
mov dword [esp + 0x90], ecx
add esp, 0x7c
ret
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x8c], eax
mov dword [esp + 0x90], ecx
add esp, 0x7c
ret
mov eax, ebx
call fcn.0045d960
mov eax, 1
call fcn.0045d9c0
xor eax, eax
call fcn.0045d960
mov edx, dword [esp + 0x84]
mov dword [esp + 0x2c], edx
cmp dword [esp + 0x28], edx
jl 0x498aa3
jmp 0x498ad9
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x84]
mov edx, dword [esp + 0x80]
cmp ecx, eax
ja 0x498abe
jmp 0x498be0
lea edx, [edx + eax*8]
mov edx, dword [edx + 4]
test edx, edx
jne 0x498aca
jmp 0x498acc
jmp 0x498adb
jmp 0x498ace
mov edx, dword [esp + 0x28]
inc edx
mov dword [esp + 0x28], edx
jmp 0x498a90
jmp 0x498adb
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x84]
mov edx, dword [esp + 0x80]
mov ebx, dword [esp + 0x88]
jmp 0x498af6
cmp ecx, eax
jae 0x498aff
jmp 0x498bdb
sub ebx, eax
mov ebp, ebx
neg ebx
mov esi, eax
shl eax, 3
sar ebx, 0x1f
and eax, ebx
add eax, edx
mov dword [esp + 0x70], eax
sub ecx, esi
mov dword [esp + 0x74], ecx
mov dword [esp + 0x78], ebp
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], ebp
lea eax, [0x4b0c89]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], 1
call fcn.00495490
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], ecx
mov ecx, dword [esp + 0x84]
mov eax, dword [esp + 0x80]
test ecx, ecx
ja 0x498b65
jmp 0x498bd4
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp + 0x60], ecx
mov dword [esp + 0x64], eax
mov edx, dword [esp + 0x48]
mov ebx, dword [esp + 0x4c]
mov dword [esp], 0
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], ebx
call fcn.0044b920
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], ecx
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.00497280
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x8c], eax
mov dword [esp + 0x90], ecx
add esp, 0x7c
ret
xor eax, eax
call fcn.0045d960
call fcn.0045d9c0
call fcn.0045d960
mov eax, 1
call fcn.0045d960
xor eax, eax
call fcn.0045d960
xor eax, eax
call fcn.0045d960
nop
call fcn.0045c4a0
jmp fcn.00498760