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

Disassembly:
mov ecx, dword [0x95eda0]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x498287
sub esp, 0x68
mov edx, dword [esp + 0x6c]
test edx, edx
je 0x497e87
lea ebx, [0x93fa80]
cmp edx, ebx
jne 0x497e8d
lea eax, [0x95ee70]
mov dword [esp], eax
lea eax, [0x7152a8]
mov dword [esp + 4], eax
call fcn.0047ba90
mov edx, dword [esp + 0x6c]
jmp 0x497e8d
lea edx, [0x93bd80]
mov ecx, dword [edx + 0xc]
test ecx, ecx
je 0x498036
mov dword [esp + 0x58], ecx
mov ebx, dword [edx + 0x38]
test ebx, ebx
je 0x497f55
mov ebp, dword [edx + 0x28]
mov dword [esp + 0x54], ebp
mov esi, dword [edx + 0x2c]
mov dword [esp + 0x50], esi
mov edi, dword [esp + 0x74]
cmp edi, esi
sete al
setg cl
mov esi, dword [esp + 0x70]
cmp esi, ebp
xchg ebp, ebx
setae bl
xchg ebp, ebx
and ebp, eax
or ecx, ebp
test cl, cl
je 0x497f5d
mov ebp, dword [edx + 0x30]
mov dword [esp + 0x4c], ebp
mov eax, dword [edx + 0x34]
mov dword [esp + 0x48], eax
cmp edi, eax
setl cl
sete al
cmp esi, ebp
xchg ebp, ebx
setb bl
xchg ebp, ebx
and ebp, eax
or ebp, ecx
xchg ebp, eax
test al, al
xchg ebp, eax
je 0x497f5d
mov eax, dword [ebx]
mov ecx, dword [ebx + 4]
mov edx, dword [ebx + 8]
movzx ebx, byte [ebx + 0xc]
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], ecx
mov dword [esp + 0x80], edx
mov eax, dword [esp + 0x54]
mov dword [esp + 0x84], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 0x88], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x8c], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x90], eax
mov byte [esp + 0x94], bl
add esp, 0x68
ret
mov esi, dword [esp + 0x70]
mov edi, dword [esp + 0x74]
mov dword [esp + 0x5c], edx
mov ecx, dword [edx + 0x18]
test ecx, ecx
je 0x497fac
mov ebx, dword [edx + 0x14]
mov ebp, dword [ebx + 4]
cmp edi, ebp
xchg ebp, ebx
setl bl
xchg ebp, ebx
sete al
cmp dword [ebx], esi
seta dl
and edx, eax
or edx, ebp
test dl, dl
jne 0x497fa8
mov dword [esp + 0x64], ebx
mov dword [esp + 0x44], ecx
mov eax, ecx
xor edx, edx
mov ebp, 0x7fffffff
mov eax, 0xffffffff
mov dword [esp + 0x54], eax
mov eax, ecx
jmp 0x4980ae
mov edx, dword [esp + 0x5c]
mov dword [esp], edx
call fcn.004982a0
mov eax, dword [esp + 0x5c]
mov ecx, dword [eax + 0xc]
mov edx, dword [esp + 4]
cmp ecx, edx
jbe 0x49808b
mov ecx, dword [eax + 8]
shl edx, 4
mov ebx, dword [eax + 0x18]
mov ebp, dword [edx + ecx]
mov esi, dword [edx + ecx + 4]
mov edi, dword [edx + ecx + 8]
test ebx, ebx
je 0x497fe9
mov eax, dword [eax + 0x14]
mov ebx, dword [eax + 4]
mov eax, dword [eax]
jmp 0x497ff3
mov ebx, 0x7fffffff
mov eax, 0xffffffff
movzx ecx, byte [edx + ecx + 0xc]
mov dword [esp + 0x78], ebp
mov dword [esp + 0x7c], esi
mov dword [esp + 0x80], edi
mov dword [esp + 0x84], 0
mov dword [esp + 0x88], 0x80000000
mov dword [esp + 0x8c], eax
mov dword [esp + 0x90], ebx
mov byte [esp + 0x94], cl
add esp, 0x68
ret
lea eax, [0x6f6a9f]
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], 3
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], 0
mov dword [esp + 0x88], 0x80000000
mov dword [esp + 0x8c], 0xffffffff
mov dword [esp + 0x90], 0x7fffffff
mov byte [esp + 0x94], 0
add esp, 0x68
ret
mov eax, edx
call fcn.00471840
mov ebx, dword [esp + 0x64]
mov edi, dword [esp + 0x74]
mov esi, dword [esp + 0x44]
mov esi, dword [esp + 0x70]
mov dword [esp + 0x54], ecx
mov ecx, ebp
mov ebp, eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x50], ebp
sub ecx, edx
cmp ecx, 1
jle 0x49810f
mov ebp, dword [esp + 0x3c]
lea ecx, [edx + ebp]
shr ecx, 1
cmp eax, ecx
jbe 0x49827b
mov dword [esp + 0x40], ecx
lea eax, [ecx + ecx*2]
mov ecx, dword [ebx + eax*4]
mov eax, dword [ebx + eax*4 + 4]
cmp edi, eax
xchg edi, ebx
setl bl
xchg edi, ebx
sete bl
cmp esi, ecx
xchg esi, ebx
setb bl
xchg esi, ebx
and esi, ebx
or esi, edi
xchg esi, eax
test al, al
xchg esi, eax
je 0x498101
mov ebp, dword [esp + 0x40]
jmp 0x498092
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x54]
jmp 0x498092
cmp edx, eax
jae 0x498272
lea ecx, [edx + edx*2]
lea edi, [ebx + ecx*4 + 8]
movzx edi, byte [edi]
mov esi, dword [esp + 0x58]
cmp esi, edi
jbe 0x498269
mov esi, dword [esp + 0x5c]
mov ebp, dword [esi + 8]
shl edi, 4
dec eax
mov esi, dword [edi + ebp]
mov dword [esp + 0x60], esi
mov esi, dword [edi + ebp + 4]
mov dword [esp + 0x58], esi
mov esi, dword [edi + ebp + 8]
mov dword [esp + 0x44], esi
mov esi, dword [ebx + ecx*4 + 4]
mov ecx, dword [ebx + ecx*4]
movzx ebx, byte [edi + ebp + 0xc]
cmp edx, eax
jne 0x49821f
mov eax, dword [esp + 0x5c]
mov edx, dword [eax + 0x24]
test edx, edx
je 0x49821f
mov byte [esp + 0x3b], bl
mov dword [esp + 0x48], esi
mov dword [esp + 0x4c], ecx
mov eax, dword [eax + 0x20]
mov dword [esp], eax
mov dword [esp + 4], edx
mov dword [esp + 8], ecx
mov dword [esp + 0xc], esi
mov eax, dword [esp + 0x70]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x74]
mov dword [esp + 0x14], eax
call fcn.00498380
movzx eax, byte [esp + 0x35]
test al, al
jne 0x4981bd
mov ecx, dword [esp + 0x4c]
movzx ebx, byte [esp + 0x3b]
mov esi, dword [esp + 0x48]
jmp 0x49821f
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
mov ebx, dword [esp + 0x2c]
movzx ebp, byte [esp + 0x34]
xchg ebp, eax
mov byte [esp + 0x3a], al
xchg ebp, eax
mov esi, dword [esp + 0x1c]
mov edi, dword [esp + 0x28]
mov ebp, dword [esp + 0x30]
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], esi
mov dword [esp + 0x80], ecx
mov dword [esp + 0x84], edx
mov dword [esp + 0x88], edi
mov dword [esp + 0x8c], ebx
mov dword [esp + 0x90], ebp
movzx eax, byte [esp + 0x3a]
mov byte [esp + 0x94], al
add esp, 0x68
ret
mov eax, dword [esp + 0x60]
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x58]
mov dword [esp + 0x7c], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], ecx
mov dword [esp + 0x88], esi
mov eax, dword [esp + 0x54]
mov dword [esp + 0x8c], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 0x90], eax
mov byte [esp + 0x94], bl
add esp, 0x68
ret
mov eax, edi
mov ecx, esi
call fcn.00471840
mov ecx, eax
mov eax, edx
call fcn.00471840
mov edx, eax
mov eax, ecx
mov ecx, edx
call fcn.00471840
nop
call fcn.004703c0
jmp fcn.00497e40