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

Disassembly:
sub esp, 0x39c
mov eax, dword [0x4d4f10]
xor eax, esp
mov dword [esp + 0x398], eax
mov eax, dword [esp + 0x3a4]
push ebx
mov ebx, dword [esp + 0x3b8]
push ebp
mov ebp, dword [esp + 0x3a8]
mov dword [esp + 0x3c], ecx
mov ecx, dword [esp + 0x3c4]
push esi
mov esi, dword [esp + 0x3c4]
push edi
xor edi, edi
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x3b8]
mov dword [esp + 0x40], edx
mov edx, dword [esp + 0x3d0]
mov dword [esp + 0x24], ecx
mov ecx, ebp
mov dword [esp + 0x38], ebp
mov dword [esp + 0x20], eax
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], esi
mov dword [esp + 0x34], edx
mov dword [esp + 0x48], edi
mov dword [esp + 0x4c], edi
mov dword [esp + 0x30], edi
mov dword [esp + 0x3c], edi
call fcn.00497b60
cmp eax, edi
jne 0x4981e2
mov edx, dword [ebp]
mov dword [esp + 0x18], edi
cmp edx, edi
jbe 0x4981e0
lea ecx, [ecx]
mov ecx, dword [esp + 0x38]
lea eax, [edi + edi*2]
lea ebp, [ecx + eax*4 + 0x38]
mov ecx, dword [ebp + 4]
mov eax, ecx
mov dword [esp + 0x2c], ebp
call fcn.00497b10
test eax, eax
je 0x497f4a
xor ebp, ebp
mov dword [esp + 0x1c], esi
cmp edx, 4
jne 0x497e22
mov eax, dword [esp + 0x44]
mov esi, dword [eax + edi*8]
mov eax, dword [eax + edi*8 + 4]
xor ecx, ecx
lea ebx, [edi*4]
mov dword [esp + 0x54], 3
mov dword [esp + 0x58], 2
mov dword [esp + 0x5c], ecx
mov ebp, dword [esp + ebx + 0x54]
cmp edi, 2
jae 0x497df2
mov dword [esp + 0x1c], esi
cmp esi, esi
jne 0x4981fb
cmp ecx, eax
jne 0x4981fb
mov eax, dword [esp + 0x24]
mov edx, dword [eax]
push esi
push eax
call edx
add esp, 8
test eax, eax
jne 0x497dde
test esi, esi
jne 0x4981fb
mov edx, dword [esp + 0x34]
mov ecx, ebx
neg ecx
mov dword [ecx + edx + 4], eax
mov ebx, eax
mov dword [esp + ecx + 0x4c], esi
jmp 0x497e22
jne 0x498209
cmp eax, ecx
ja 0x498202
jb 0x497e0c
cmp esi, dword [esp + 0x10]
ja 0x498202
mov ebx, dword [esp + 0x10]
sub ebx, esi
add ebx, dword [esp + 0x14]
mov dword [esp + 0x1c], esi
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x30], esi
mov edx, dword [esp + 0x40]
mov eax, dword [edx + ebp*8]
mov edi, dword [edx + ebp*8 + 8]
mov ecx, dword [edx + ebp*8 + 4]
mov esi, dword [edx + ebp*8 + 0xc]
sub edi, eax
sbb esi, ecx
add eax, dword [esp + 0x3bc]
adc ecx, dword [esp + 0x3c0]
push ecx
push eax
mov eax, dword [esp + 0x28]
push eax
call fcn.00497180
add esp, 0xc
test eax, eax
jne 0x4981e2
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax + 4]
test ecx, ecx
jne 0x497e91
xor eax, eax
cmp edi, dword [esp + 0x1c]
jne 0x498210
cmp esi, eax
jne 0x498210
push ebx
push esi
mov esi, dword [esp + 0x28]
push edi
call fcn.00497a70
add esp, 0xc
jmp 0x497f31
cmp ecx, 0x30101
jne 0x497ebf
mov ecx, dword [esp + 0x1c]
movzx edx, byte [eax + 9]
mov eax, dword [eax]
add eax, dword [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x28]
push ebx
push esi
push edi
push edx
mov edx, dword [esp + 0x34]
push eax
call fcn.00497740
add esp, 0x18
jmp 0x497f31
cmp ecx, 0x21
jne 0x497f02
mov ecx, dword [esp + 0x1c]
movzx edx, byte [eax + 9]
mov eax, dword [eax]
add eax, dword [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x28]
push esi
push edi
push edx
mov edx, ebx
mov ebx, dword [esp + 0x30]
push eax
call fcn.004978e0
add esp, 0x14
test eax, eax
jne 0x4981e2
mov edi, dword [esp + 0x18]
mov ebx, dword [esp + 0x14]
mov esi, dword [esp + 0x10]
jmp 0x4981cd
cmp ecx, 0x30401
jne 0x498209
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
push ecx
movzx ecx, byte [eax + 9]
push edx
mov edx, dword [esp + 0x2c]
push esi
push edi
push ecx
mov ecx, dword [eax]
add ecx, dword [esp + 0x3c]
call fcn.00497560
add esp, 0x14
test eax, eax
jne 0x4981e2
mov edi, dword [esp + 0x18]
mov ebx, dword [esp + 0x14]
mov esi, dword [esp + 0x10]
jmp 0x4981cd
cmp ecx, 0x303011b
jne 0x4980e5
mov eax, dword [esp + 0x40]
mov esi, dword [eax + 8]
mov edi, dword [eax + 0x10]
mov ebp, dword [eax + 0xc]
mov eax, dword [eax + 0x14]
sub edi, esi
sbb eax, ebp
cmp dword [esp + 0x18], 3
mov dword [esp + 0x64], eax
jne 0x498209
xor ecx, ecx
cmp edi, edi
jne 0x4981fb
cmp ecx, eax
jne 0x4981fb
mov eax, dword [esp + 0x24]
mov edx, dword [eax]
push edi
push eax
call edx
mov ebx, dword [esp + 0x3c]
add esp, 8
mov dword [ebx + 8], eax
test eax, eax
jne 0x497fab
test edi, edi
jne 0x4981fb
add esi, dword [esp + 0x3bc]
adc ebp, dword [esp + 0x3c0]
push ebp
push esi
mov esi, dword [esp + 0x28]
push esi
call fcn.00497180
add esp, 0xc
test eax, eax
jne 0x4981e2
mov eax, dword [ebx + 8]
mov ecx, dword [esp + 0x64]
push eax
push ecx
push edi
call fcn.00497a70
add esp, 0xc
test eax, eax
jne 0x4981e2
mov edx, dword [esp + 0x48]
test dl, 3
jne 0x498210
mov ecx, dword [esp + 0x4c]
test cl, 3
jne 0x498210
mov esi, dword [esp + 0x30]
mov ebp, dword [esp + 0x10]
lea eax, [esi + ecx]
add eax, edx
cmp eax, ebp
jne 0x498210
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x68], eax
add eax, esi
mov dword [esp + 0x78], eax
mov eax, dword [ebx]
mov dword [esp + 0x6c], eax
add eax, edx
mov dword [esp + 0x7c], eax
mov eax, dword [ebx + 4]
mov ebx, dword [ebx + 8]
mov dword [esp + 0x70], eax
add eax, ecx
mov dword [esp + 0x80], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x74], ebx
lea ecx, [esp + 0x68]
add ebp, eax
add ebx, edi
push ecx
mov dword [esp + 0x88], ebx
mov dword [esp + 0x8c], eax
mov dword [esp + 0x90], ebp
call fcn.0049c720
lea edx, [esp + 0x6c]
push edx
call fcn.0049c760
add esp, 8
test eax, eax
jne 0x4981e2
jmp 0x498090
mov ecx, dword [esp + eax*4 + 0x68]
cmp ecx, dword [esp + eax*4 + 0x78]
jne 0x498210
inc eax
cmp eax, 4
jb 0x498090
cmp dword [esp + 0xa0], 0
jne 0x498210
mov edx, dword [esp + 0x88]
cmp edx, dword [esp + 0x8c]
jne 0x498210
cmp dword [esp + 0x90], 0
jne 0x498210
mov edi, dword [esp + 0x18]
mov ebx, dword [esp + 0x14]
mov esi, dword [esp + 0x10]
jmp 0x4981cd
cmp edi, 1
jne 0x498209
cmp ecx, 3
jne 0x49812e
cmp byte [ebp + 9], 1
jne 0x498209
lea eax, [esp + 0x2a8]
push eax
call fcn.0049c620
mov ecx, dword [ebp]
mov edx, dword [esp + 0x2c]
movzx eax, byte [ecx + edx]
push esi
push ebx
inc eax
push eax
lea ecx, [esp + 0x2b8]
push ecx
call fcn.0049c660
add esp, 0x14
jmp 0x4981cd
cmp byte [ebp + 9], 0
jne 0x498209
cmp ecx, 0x3030501
ja 0x4981a2
je 0x498195
cmp ecx, 0x3030103
je 0x498178
cmp ecx, 0x3030205
je 0x49816b
cmp ecx, 0x3030401
jne 0x498209
push 0
push 0
push esi
push ebx
call fcn.0049c3c0
jmp 0x4981ca
push 0
push 0
push esi
push ebx
call fcn.0049c0d0
jmp 0x4981ca
push 0
lea edx, [esp + 0x30]
push edx
push 0
push esi
push ebx
mov dword [esp + 0x40], 0
call fcn.0049c260
add esp, 0x14
jmp 0x4981cd
push 0
push 0
push esi
push ebx
call fcn.0049bf90
jmp 0x4981ca
cmp ecx, 0x3030701
je 0x4981bf
cmp ecx, 0x3030805
jne 0x498209
push 0
push 0
push esi
push ebx
call fcn.0049c180
jmp 0x4981ca
push 0
push 0
push esi
push ebx
call fcn.0049c010
add esp, 0x10
mov eax, dword [esp + 0x38]
mov edx, dword [eax]
inc edi
mov dword [esp + 0x18], edi
cmp edi, edx
jb 0x497d50
xor eax, eax
mov ecx, dword [esp + 0x3a8]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0047afcb
add esp, 0x39c
ret
mov eax, 2
jmp 0x4981e2
mov eax, 5
jmp 0x4981e2
mov eax, 4
jmp 0x4981e2
mov eax, 1
jmp 0x4981e2