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

Disassembly:
mov ecx, dword [0x57adc8]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
lea eax, [esp - 0x34]
cmp eax, dword [ecx + 8]
jbe 0x499780
sub esp, 0xb4
mov eax, 0
mov dword [esp + 0xb0], eax
mov byte [esp + 0x27], 0
mov dword [esp + 0xbc], 0
mov dword [esp + 0xc0], 0
mov eax, dword [esp + 0xb8]
mov ecx, dword [eax + 0x50]
test ecx, ecx
jne 0x49952c
mov byte [esp + 0x26], 0
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], 0
lea ecx, [0x499900]
mov dword [esp + 0x74], ecx
mov dword [esp + 0x78], eax
lea ecx, [esp + 0x26]
mov dword [esp + 0x7c], ecx
lea ecx, [esp + 0x74]
mov dword [esp + 0xb0], ecx
mov byte [esp + 0x27], 1
mov ecx, dword [eax + 4]
test ecx, ecx
jne 0x498e16
mov ecx, dword [eax + 0x60]
test ecx, ecx
jne 0x498e16
mov ecx, dword [eax + 0xac]
test ecx, ecx
jne 0x498e16
lea eax, [0x4d5dd0]
mov dword [esp], eax
mov dword [esp + 4], 0x10
call fcn.00470350
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0xb8]
mov dword [edx + 0x60], eax
mov eax, dword [0x57aed0]
test eax, eax
je 0x498e11
call fcn.00469ce0
mov dword [edi], ecx
mov eax, dword [edx + 0x64]
mov dword [edi + 4], eax
mov dword [edx + 0x64], ecx
jmp 0x498e18
mov edx, eax
mov eax, dword [edx + 0x60]
test eax, eax
jne 0x498e29
mov ecx, dword [edx + 0xac]
test ecx, ecx
je 0x498e86
mov ecx, dword [edx + 0xac]
test ecx, ecx
je 0x498e5e
mov eax, dword [edx + 0xb0]
mov dword [esp + 0xbc], ecx
mov dword [esp + 0xc0], eax
mov byte [esp + 0x27], 0
mov edx, dword [esp + 0xb0]
mov eax, dword [edx]
call eax
add esp, 0xb4
ret
mov ecx, dword [edx + 0x64]
mov dword [esp + 0xbc], eax
mov dword [esp + 0xc0], ecx
mov byte [esp + 0x27], 0
mov edx, dword [esp + 0xb0]
mov eax, dword [edx]
call eax
add esp, 0xb4
ret
mov eax, dword [edx + 4]
mov ecx, dword [edx]
mov ebx, dword [edx + 0x20]
mov ebp, dword [edx + 0x24]
mov dword [esp], ecx
mov dword [esp + 4], eax
mov dword [esp + 8], ebx
mov dword [esp + 0xc], ebp
call fcn.00498a60
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x4994ff
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xb8]
mov dword [edx + 4], eax
mov eax, dword [0x57aed0]
test eax, eax
je 0x498ed9
call fcn.00469ce0
mov dword [edi], ecx
mov eax, dword [edx]
mov dword [edi + 4], eax
mov dword [edx], ecx
mov eax, dword [edx + 0x68]
test eax, eax
je 0x498f2c
mov eax, dword [edx + 0x58]
test eax, eax
jne 0x498f2c
lea eax, [0x4dec4f]
mov dword [esp], eax
mov dword [esp + 4], 0x47
call fcn.00470350
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov dword [esp + 0xbc], eax
mov dword [esp + 0xc0], ecx
mov byte [esp + 0x27], 0
mov edx, dword [esp + 0xb0]
mov eax, dword [edx]
call eax
add esp, 0xb4
ret
mov eax, dword [edx + 0x58]
test eax, eax
je 0x498f5e
mov ecx, dword [edx + 0x5c]
mov eax, dword [eax + 0x14]
mov dword [esp], ecx
call eax
mov dword [esp], 0
call fcn.004074d0
movzx eax, byte [esp + 8]
test al, al
jne 0x4994bd
mov edx, dword [esp + 0xb8]
mov eax, dword [edx + 0x44]
mov dword [esp + 0x3c], eax
lea ecx, [0x4d14e0]
mov dword [esp], ecx
mov dword [esp + 4], 0
lea ebx, [eax + 3]
mov dword [esp + 0x34], ebx
mov dword [esp + 8], ebx
call fcn.00450b40
mov eax, dword [esp + 0xc]
mov dword [esp + 0x70], eax
mov ecx, dword [esp + 0xb8]
mov dword [esp], ecx
call fcn.00497f70
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
test eax, eax
jne 0x499490
mov dword [esp + 0x44], ecx
mov eax, dword [esp + 0x3c]
cmp eax, 0xfffffffd
je 0x498fc4
mov eax, dword [esp + 0x70]
mov ebx, dword [esp + 0x34]
jmp 0x498ffa
mov eax, dword [esp + 0x70]
mov dword [esp], eax
mov dword [esp + 4], 1
mov dword [esp + 8], 0
mov dword [esp + 0xc], 1
lea eax, [0x4d14e0]
mov dword [esp + 0x10], eax
call fcn.00450be0
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x1c]
mov dword [esp + 0x34], ebx
mov ecx, dword [0x57aed0]
test ecx, ecx
jne 0x49900e
mov ecx, dword [esp + 0x44]
jmp 0x49901e
call fcn.00469ce0
mov ecx, dword [esp + 0x44]
mov dword [edi], ecx
mov edx, dword [eax]
mov dword [edi + 4], edx
mov dword [esp + 0x60], eax
mov dword [eax], ecx
mov ecx, dword [esp + 0xb8]
mov dword [esp], ecx
call fcn.00498410
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
test eax, eax
jne 0x499463
mov eax, dword [esp + 0x34]
cmp eax, 2
jb 0x499052
mov edx, dword [esp + 0x60]
jmp 0x499090
mov dword [esp + 0x40], ecx
mov ecx, dword [esp + 0x60]
mov dword [esp], ecx
mov dword [esp + 4], 2
mov dword [esp + 8], eax
mov dword [esp + 0xc], 1
lea eax, [0x4d14e0]
mov dword [esp + 0x10], eax
call fcn.00450be0
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x40]
mov edx, eax
mov eax, ebx
mov dword [esp + 0x34], eax
mov ebx, dword [0x57aed0]
test ebx, ebx
je 0x4990ab
call fcn.00469ce0
mov dword [edi], ecx
mov ebx, dword [edx + 4]
mov dword [edi + 4], ebx
mov dword [esp + 0x60], edx
mov dword [edx + 4], ecx
mov eax, dword [esp + 0xb8]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.00498460
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
test eax, eax
jne 0x499436
mov eax, dword [esp + 0x34]
cmp eax, 3
jb 0x4990e4
mov edx, dword [esp + 0x60]
jmp 0x49911e
mov dword [esp + 0x48], ecx
mov ecx, dword [esp + 0x60]
mov dword [esp], ecx
mov dword [esp + 4], 3
mov dword [esp + 8], eax
mov dword [esp + 0xc], 1
lea eax, [0x4d14e0]
mov dword [esp + 0x10], eax
call fcn.00450be0
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x48]
mov ebx, dword [0x57aed0]
test ebx, ebx
je 0x499135
call fcn.00469ce0
mov dword [edi], ecx
mov ebx, dword [edx + 8]
mov dword [edi + 4], ebx
mov dword [edx + 8], ecx
mov ecx, dword [esp + 0xb8]
mov ebx, dword [ecx + 0x44]
lea ebp, [ebx + 3]
mov esi, dword [ecx + 0x40]
cmp eax, ebp
jae 0x499186
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x6c], esi
mov dword [esp], edx
mov dword [esp + 4], ebp
mov dword [esp + 8], eax
mov dword [esp + 0xc], ebx
lea eax, [0x4d14e0]
mov dword [esp + 0x10], eax
call fcn.00450be0
mov edx, dword [esp + 0x14]
mov ebp, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov ebx, dword [esp + 0x3c]
mov esi, dword [esp + 0x6c]
mov dword [esp + 0x34], eax
mov dword [esp + 0x30], ebp
mov dword [esp + 0x60], edx
lea ecx, [0x4d14e0]
mov dword [esp], ecx
lea ecx, [ebp - 3]
lea edi, [eax - 3]
xchg edi, ebx
neg ebx
xchg edi, ebx
sar edi, 0x1f
and edi, 0xc
add edi, edx
mov dword [esp + 4], edi
mov dword [esp + 8], ecx
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], ebx
call fcn.00413430
mov eax, dword [esp + 0xb8]
mov dword [esp], eax
call fcn.0049a470
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x499409
mov eax, dword [esp + 4]
mov dword [esp + 0x5c], eax
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x2c], ecx
mov edx, dword [esp + 8]
mov dword [esp + 0x28], edx
mov ebx, dword [esp + 0xb8]
mov dword [esp], ebx
call fcn.00497ee0
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
mov dword [esp + 0x3c], ecx
mov edx, dword [esp + 0xc]
lea edi, [esp + 0x8c]
mov ebx, eax
xor eax, eax
call fcn.00469da7
mov eax, dword [esp + 0xb8]
mov ecx, dword [eax + 0x20]
mov ebp, dword [eax + 0x24]
mov dword [esp + 0x90], ebp
mov dword [esp + 0x8c], ecx
mov ecx, dword [esp + 0x30]
mov dword [esp + 0xa4], ecx
mov ecx, dword [esp + 0x34]
mov dword [esp + 0xa8], ecx
mov ecx, dword [esp + 0x60]
mov dword [esp + 0xa0], ecx
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x98], ecx
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x9c], ecx
mov ecx, dword [esp + 0x5c]
mov dword [esp + 0x94], ecx
mov ecx, dword [eax + 0x4c]
mov dword [esp + 0xac], ecx
mov ecx, dword [eax]
mov ebp, dword [eax + 4]
mov dword [esp], ecx
mov dword [esp + 4], ebp
mov dword [esp + 8], ebx
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], edx
lea ecx, [esp + 0x8c]
mov dword [esp + 0x14], ecx
call fcn.0048cf40
mov eax, dword [0x57aed0]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x20]
test eax, eax
jne 0x4992dc
mov eax, dword [esp + 0xb8]
jmp 0x4992f0
call fcn.00469ce0
mov dword [edi], ecx
mov eax, dword [esp + 0xb8]
mov esi, dword [eax + 0x50]
mov dword [edi + 4], esi
mov dword [eax + 0x50], ecx
test edx, edx
jne 0x4993e4
mov byte [esp + 0x26], 1
mov ecx, dword [eax + 0x90]
test ecx, ecx
je 0x49955f
lea eax, [0x4c1160]
mov dword [esp], eax
mov dword [esp + 4], 1
call fcn.00406160
mov eax, dword [0x57aed0]
mov ecx, dword [esp + 8]
test eax, eax
jne 0x49933b
mov eax, dword [esp + 0xb8]
jmp 0x499352
call fcn.00469ce0
mov dword [edi], ecx
mov eax, dword [esp + 0xb8]
mov edx, dword [eax + 0x98]
mov dword [edi + 4], edx
mov dword [esp + 0x54], ecx
mov dword [eax + 0x98], ecx
lea edx, [0x4c1120]
mov dword [esp], edx
mov dword [esp + 4], 1
call fcn.00406160
mov eax, dword [esp + 8]
mov dword [esp + 0x4c], eax
mov ecx, dword [esp + 0xb8]
mov edx, dword [ecx + 0x90]
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], 0
mov dword [esp + 0x88], 0
mov dword [esp + 0x80], edx
mov dword [esp], eax
lea edx, [esp + 0x80]
mov dword [esp + 4], edx
call fcn.00406400
mov eax, dword [esp + 0xb8]
mov ecx, dword [eax + 0x8c]
mov dword [esp + 0x68], ecx
mov edx, dword [eax + 0x90]
mov dword [esp + 0x3c], edx
xor ebx, ebx
jmp 0x499695
mov dword [esp + 0xbc], ebx
mov dword [esp + 0xc0], ebp
mov byte [esp + 0x27], 0
mov edx, dword [esp + 0xb0]
mov eax, dword [edx]
call eax
add esp, 0xb4
ret
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0xbc], eax
mov dword [esp + 0xc0], ecx
mov byte [esp + 0x27], 0
mov edx, dword [esp + 0xb0]
mov eax, dword [edx]
call eax
add esp, 0xb4
ret
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0xbc], eax
mov dword [esp + 0xc0], ecx
mov byte [esp + 0x27], 0
mov edx, dword [esp + 0xb0]
mov eax, dword [edx]
call eax
add esp, 0xb4
ret
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov dword [esp + 0xbc], eax
mov dword [esp + 0xc0], ecx
mov byte [esp + 0x27], 0
mov edx, dword [esp + 0xb0]
mov eax, dword [edx]
call eax
add esp, 0xb4
ret
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov dword [esp + 0xbc], eax
mov dword [esp + 0xc0], ecx
mov byte [esp + 0x27], 0
mov edx, dword [esp + 0xb0]
mov eax, dword [edx]
call eax
add esp, 0xb4
ret
mov eax, dword [esp + 0xb8]
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 + 4]
mov ecx, dword [esp + 8]
mov dword [esp + 0xbc], eax
mov dword [esp + 0xc0], ecx
mov byte [esp + 0x27], 0
mov edx, dword [esp + 0xb0]
mov eax, dword [edx]
call eax
add esp, 0xb4
ret
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0xbc], eax
mov dword [esp + 0xc0], ecx
mov byte [esp + 0x27], 0
mov edx, dword [esp + 0xb0]
mov eax, dword [edx]
call eax
add esp, 0xb4
ret
lea eax, [0x4d782f]
mov dword [esp], eax
mov dword [esp + 4], 0x15
call fcn.00470350
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov dword [esp + 0xbc], eax
mov dword [esp + 0xc0], ecx
add esp, 0xb4
ret
mov ecx, dword [eax + 0x68]
test ecx, ecx
jne 0x499580
mov ecx, dword [eax + 0x6c]
mov ebx, dword [eax + 0x70]
test ebx, ebx
setne bl
test ecx, ecx
setne cl
or ebx, ecx
test bl, bl
je 0x499644
mov ecx, dword [eax + 0x58]
test ecx, ecx
je 0x499644
mov edx, dword [eax + 0x5c]
mov ecx, dword [ecx + 0x14]
mov dword [esp], edx
call ecx
mov eax, dword [esp + 4]
test eax, eax
je 0x499644
lea eax, [0x4c11a0]
mov dword [esp], eax
mov dword [esp + 4], 0
call fcn.00406160
mov eax, dword [0x57aed0]
mov ecx, dword [esp + 8]
test eax, eax
jne 0x4995cf
mov eax, dword [esp + 0xb8]
jmp 0x4995e6
call fcn.00469ce0
mov dword [edi], ecx
mov eax, dword [esp + 0xb8]
mov edx, dword [eax + 0x9c]
mov dword [edi + 4], edx
mov dword [esp + 0x50], ecx
mov dword [eax + 0x9c], ecx
lea edx, [0x4c7240]
mov dword [esp], edx
call fcn.0040d8c0
mov eax, dword [esp + 4]
lea ecx, [0x499790]
mov dword [eax], ecx
mov ecx, dword [0x57aed0]
test ecx, ecx
jne 0x499621
mov ecx, dword [esp + 0xb8]
mov edx, dword [esp + 0x50]
jmp 0x499636
call fcn.00469ce0
mov ecx, dword [esp + 0xb8]
mov dword [edi], ecx
mov edx, dword [esp + 0x50]
mov dword [edi + 4], edx
mov dword [eax + 4], ecx
mov dword [eax + 8], edx
mov dword [esp], eax
call fcn.00446fd0
mov dword [esp + 0xbc], 0
mov dword [esp + 0xc0], 0
mov byte [esp + 0x27], 0
mov edx, dword [esp + 0xb0]
mov eax, dword [edx]
call eax
add esp, 0xb4
ret
mov dword [eax + 4], edx
mov dword [eax + 8], ebx
mov dword [esp], eax
call fcn.00446fd0
mov eax, dword [esp + 0x38]
lea ebx, [eax + 1]
mov eax, dword [esp + 0xb8]
mov ecx, dword [esp + 0x68]
mov edx, dword [esp + 0x3c]
cmp ebx, edx
jge 0x49973a
mov dword [esp + 0x38], ebx
mov eax, dword [ecx + ebx*4]
mov dword [esp + 0x58], eax
lea edx, [0x4c7180]
mov dword [esp], edx
call fcn.0040d8c0
mov eax, dword [esp + 4]
lea ecx, [0x499820]
mov dword [eax], ecx
mov edx, dword [0x57aed0]
test edx, edx
jne 0x4996d6
mov edx, dword [esp + 0x4c]
mov ebx, dword [esp + 0x54]
jmp 0x4996e8
call fcn.00469ce0
mov edx, dword [esp + 0x4c]
mov dword [edi], edx
mov ebx, dword [esp + 0x54]
mov dword [edi + 4], ebx
mov dword [esp + 0x64], eax
mov dword [eax + 4], edx
mov dword [eax + 8], ebx
lea ecx, [0x4c72a0]
mov dword [esp], ecx
call fcn.0040d8c0
mov eax, dword [esp + 4]
lea ecx, [0x4997e0]
mov dword [eax], ecx
mov edx, dword [0x57aed0]
test edx, edx
jne 0x499723
mov edx, dword [esp + 0x64]
mov ebx, dword [esp + 0x58]
jmp 0x499671
call fcn.00469ce0
mov edx, dword [esp + 0x64]
mov dword [edi], edx
mov ebx, dword [esp + 0x58]
mov dword [edi + 4], ebx
jmp 0x499671
mov dword [eax + 0x90], 0
mov dword [eax + 0x94], 0
mov ecx, dword [0x57aed0]
test ecx, ecx
je 0x499765
mov ecx, dword [eax + 0x8c]
call fcn.00469cd0
mov dword [edi], ecx
mov dword [eax + 0x8c], 0
jmp 0x49955f
call fcn.004688b0
jmp fcn.00498d20