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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51c04b
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x56858c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
xor ebx, ebx
lea ecx, [esi + 0x8c]
mov dword [ebp - 4], ebx
cmp dword [ecx], ebx
jne 0x497f24
push 0x5453c8
lea eax, [ebp - 0x4c]
push eax
mov dword [ebp - 0x4c], 0x52c85c
call fcn.005036c5
mov edi, dword [ecx]
cmp edi, ebx
jne 0x497f2e
xor edx, edx
jmp 0x497f44
mov eax, dword [ecx + 8]
cmp eax, ebx
je 0x497f3a
mov eax, dword [eax + 0xc]
jmp 0x497f3c
xor eax, eax
mov edx, dword [ecx + 4]
imul edx, eax
add edx, edi
mov eax, dword [esi + 0x88]
mov edx, dword [edx]
lea edi, [eax + eax*2]
lea edx, [edx + edi*4]
mov edi, dword [edx]
cmp edi, ebx
jne 0x497f5c
xor edx, edx
jmp 0x497f74
mov ebx, dword [edx + 8]
test ebx, ebx
je 0x497f68
mov ebx, dword [ebx + 0xc]
jmp 0x497f6a
xor ebx, ebx
mov edx, dword [edx + 4]
imul edx, ebx
add edx, edi
xor ebx, ebx
mov edx, dword [edx]
dec edx
cmp edx, 8
ja case.default.0x497f80
jmp dword [edx*4 + 0x49857c]
push eax
call fcn.00406d00
mov ecx, eax
call fcn.0047e2b0
cmp byte [eax + 4], 0
je 0x497faf
push 0x5453c8
lea eax, [ebp - 0x58]
push eax
mov dword [ebp - 0x58], str.Wait
call fcn.005036c5
mov ecx, dword [eax + 8]
mov dword [esi], ecx
mov eax, 2
jmp 0x49855e
push eax
call fcn.00406d00
mov ecx, eax
call fcn.0047e2b0
mov cl, byte [eax + 4]
push 0x52791c
test cl, cl
jne 0x49807b
lea esi, [eax + 8]
push esi
call fcn.00405030
add esp, 8
test al, al
je 0x49801e
call fcn.004174d0
mov edi, eax
call fcn.004174c0
push 2
mov ecx, edi
mov esi, eax
call fcn.00404910
add eax, 0x2c
push eax
mov ecx, esi
call fcn.00406810
mov ecx, eax
call fcn.004756f0
mov eax, 3
jmp 0x49855e
call fcn.004174d0
push 1
mov ecx, eax
call fcn.00404910
mov ecx, eax
call fcn.00406870
mov edx, dword [eax]
mov esi, dword [esi]
mov ecx, eax
mov eax, dword [edx + 0x14]
call eax
mov edi, eax
call fcn.004174d0
mov dword [ebp - 0x38], eax
call fcn.004174c0
mov ecx, dword [edi]
push 0
push ecx
mov ecx, dword [ebp - 0x38]
push esi
push 2
mov ebx, eax
call fcn.00404910
add eax, 0x2c
push eax
mov ecx, ebx
call fcn.00406810
mov ecx, eax
call fcn.00497740
mov eax, 3
jmp 0x49855e
cmp cl, 1
jne 0x4980cd
lea esi, [eax + 8]
push esi
call fcn.00405030
add esp, 8
test al, al
je 0x4980ad
call fcn.004174c0
mov ecx, eax
call fcn.00406810
mov ecx, eax
call fcn.00411ad0
mov eax, 3
jmp 0x49855e
mov esi, dword [esi]
call fcn.004174c0
push esi
mov ecx, eax
call fcn.00406810
mov ecx, eax
call fcn.00487780
mov eax, 3
jmp 0x49855e
add eax, 8
push eax
call fcn.00405030
add esp, 8
test al, al
je 0x498555
call fcn.004174c0
push ebx
mov ecx, eax
call fcn.00406810
mov ecx, eax
call fcn.00411dc0
mov eax, 3
jmp 0x49855e
push eax
call fcn.00406d00
mov ecx, eax
call fcn.0047e2b0
mov ebx, eax
mov edi, edi
mov ecx, dword [esi + 0x3c]
sub ecx, dword [esi + 0x38]
mov eax, 0x2aaaaaab
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [ebx + 4], eax
jl 0x498169
push 0xc0
call fcn.00503a77
add esp, 4
mov dword [ebp - 0x38], eax
mov byte [ebp - 4], 1
test eax, eax
je 0x498159
mov ecx, eax
call fcn.0047ea00
push eax
lea ecx, [esi + 0x38]
mov byte [ebp - 4], 0
call fcn.0047e970
jmp 0x498110
xor eax, eax
push eax
lea ecx, [esi + 0x38]
mov byte [ebp - 4], al
call fcn.0047e970
jmp 0x498110
mov ecx, dword [ebx + 8]
mov dword [ebp - 0x38], ecx
mov ecx, 0x56a4b4
call fcn.00416a20
mov ecx, dword [0x5699f0]
mov edx, dword [ecx + 0x18]
test edx, edx
jne 0x49818a
xor edi, edi
jmp 0x4981a0
mov eax, dword [ecx + 0x20]
test eax, eax
je 0x498196
mov eax, dword [eax + 0xc]
jmp 0x498198
xor eax, eax
mov edi, dword [ecx + 0x1c]
imul edi, eax
add edi, edx
mov edx, dword [ebp - 0x38]
mov eax, dword [ebx + 4]
push 1
push edx
push eax
mov ecx, esi
call fcn.0047e1f0
push eax
mov ecx, edi
call fcn.00467170
test al, al
jne 0x498555
push 0x5453c8
lea ecx, [ebp - 0x60]
push ecx
mov dword [ebp - 0x60], 0x52c810
call fcn.005036c5
push eax
call fcn.00406d00
mov ecx, eax
call fcn.0047e2b0
lea ecx, [esi + 0x54]
mov edi, eax
call fcn.00473740
mov edx, dword [edi + 8]
lea eax, [edi + 4]
push eax
mov ecx, esi
mov dword [esi + 4], edx
call fcn.0047e070
mov dword [esi + 0x70], eax
cmp eax, ebx
je 0x498315
cmp eax, 1
je 0x498238
cmp eax, 0xffffffff
jne 0x498221
mov dword [esi + 4], 0x100
mov dword [esi + 0x70], 3
push ebx
lea ecx, [esi + 8]
call fcn.004832d0
push eax
mov ecx, esi
call fcn.0047e620
push ebx
jmp 0x49835b
add edi, 0xc
push 0x52791c
push edi
call fcn.00405030
add esp, 8
test al, al
je 0x498262
push 0x5455d8
lea ecx, [ebp - 0x54]
push ecx
mov dword [ebp - 0x54], 1
call fcn.005036c5
mov ebx, dword [edi]
call fcn.004174c0
push ebx
lea edi, [esi + 0x14]
push edi
mov ecx, eax
call fcn.004068a0
mov ecx, eax
call fcn.004324d0
test al, al
jne 0x498295
push 0x5455d8
lea edx, [ebp - 0x40]
push edx
mov dword [ebp - 0x40], 1
call fcn.005036c5
mov ecx, edi
call fcn.00406d00
mov eax, dword [eax + 4]
lea ecx, [esi + 0x20]
mov dword [esi + 0x60], eax
mov dword [esi + 0x78], 0xff
mov dword [esi + 0x80], 0x80
mov dword [esi + 0x7c], 0xffffff80
call fcn.00406d00
mov ebx, dword [eax + 4]
call fcn.0040bfa0
push 0
push 0
push 0
push 0
push 0
push 0
push ebx
mov ecx, eax
call fcn.00474d20
lea ecx, [esi + 0x20]
call fcn.00406d00
mov eax, dword [eax + 4]
push 0
lea ecx, [esi + 0x2c]
mov dword [esi + 0x5c], eax
call fcn.004832d0
push eax
mov ecx, esi
call fcn.0047e620
push 0
lea ecx, [esi + 0x2c]
call fcn.004832d0
mov dword [esi + 0x58], eax
mov eax, 1
jmp 0x49855e
lea ecx, [esi + 0x20]
call fcn.00406d00
mov ebx, dword [eax + 4]
call fcn.0040bfa0
push 0
push 0
push 0
push 0
push 0
push 0
push ebx
mov ecx, eax
call fcn.00474d20
lea ecx, [esi + 0x20]
call fcn.00406d00
mov eax, dword [eax + 4]
push 0
lea ecx, [esi + 8]
mov dword [esi + 0x5c], eax
call fcn.004832d0
push eax
mov ecx, esi
call fcn.0047e620
push 0
lea ecx, [esi + 8]
call fcn.004832d0
mov dword [esi + 0x58], eax
mov eax, 1
jmp 0x49855e
push eax
call fcn.00406d00
mov ecx, eax
call fcn.0047e2b0
mov ebx, eax
mov ecx, dword [ebx + 4]
test ecx, ecx
jns 0x4983bf
xor edi, edi
jmp 0x498390
mov ecx, dword [esi + 0x3c]
sub ecx, dword [esi + 0x38]
mov eax, 0x2aaaaaab
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jae 0x498555
push edi
mov ecx, esi
call fcn.0047e1f0
mov cl, byte [ebx + 8]
mov byte [eax + 8], cl
inc edi
jmp 0x498390
mov edx, dword [esi + 0x3c]
sub edx, dword [esi + 0x38]
mov eax, 0x2aaaaaab
imul edx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ecx, eax
jl 0x4983ee
push 0x5455d8
lea ecx, [ebp - 0x5c]
push ecx
mov dword [ebp - 0x5c], 1
call fcn.005036c5
push ecx
mov ecx, esi
call fcn.0047e1f0
mov dl, byte [ebx + 8]
mov byte [eax + 8], dl
mov eax, 3
jmp 0x49855e
call fcn.004174d0
mov edi, dword [eax + 0x1c]
call fcn.004174d0
mov eax, dword [eax + 0x18]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x34]
push eax
mov ecx, esi
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x28], edi
call fcn.0047e2f0
mov eax, 3
jmp 0x49855e
push eax
call fcn.00406d00
mov ecx, eax
call fcn.0047e2b0
mov ecx, dword [esi + 0x3c]
sub ecx, dword [esi + 0x38]
mov edi, eax
mov eax, 0x2aaaaaab
imul ecx
sar edx, 1
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cmp dword [edi + 4], ecx
jl 0x498476
push 0x5455d8
lea edx, [ebp - 0x44]
push edx
mov dword [ebp - 0x44], 1
call fcn.005036c5
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
mov ecx, dword [edi + 4]
push eax
push ecx
mov ecx, esi
call fcn.0047e1f0
mov ecx, eax
call fcn.00430de0
mov edx, dword [edi + 8]
mov eax, dword [edi + 0x18]
mov ecx, dword [edi + 0x14]
push edx
mov edx, dword [edi + 0x10]
push eax
mov eax, dword [edi + 0xc]
push ecx
mov ecx, dword [edi + 4]
push edx
push eax
push ecx
mov ecx, esi
call fcn.0047e1f0
mov ecx, eax
call fcn.0047df60
test eax, eax
je 0x4984d7
push 0x5455d8
lea edx, [ebp - 0x48]
push edx
mov dword [ebp - 0x48], 1
call fcn.005036c5
lea eax, [ebp - 0x24]
push eax
mov ecx, esi
call fcn.0047e2f0
mov eax, 3
jmp 0x49855e
push eax
call fcn.00406d00
mov ecx, eax
call fcn.0047e2b0
mov ecx, dword [esi + 0x3c]
sub ecx, dword [esi + 0x38]
mov edi, eax
mov ebx, dword [edi + 4]
mov eax, 0x2aaaaaab
imul ecx
sar edx, 1
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cmp ebx, ecx
jl 0x498535
push 0x5455d8
lea edx, [ebp - 0x50]
push edx
mov dword [ebp - 0x50], 1
call fcn.005036c5
mov eax, 0x498530
ret
mov eax, dword [edi + 8]
mov edx, dword [esi + 0x38]
mov edi, dword [edi + 0xc]
lea ecx, [ebx + ebx*2]
lea ecx, [edx + ecx*4]
mov dword [ebp - 0x3c], eax
call fcn.00406d00
mov ecx, dword [ebp - 0x3c]
mov dword [eax + 0x2c], ecx
mov dword [eax + 0x30], edi
mov eax, 3
jmp 0x49855e
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00503edb
mov esp, ebp
pop ebp
ret