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

Disassembly:
sub esp, 0xb8
mov eax, dword [0x75a1c0]
xor eax, esp
mov dword [esp + 0xb4], eax
mov eax, dword [esp + 0xc0]
mov ecx, dword [esp + 0xc4]
push ebx
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0xcc]
push ebp
push esi
push edi
mov eax, dword [eax + 0x18]
mov ebp, 1
mov edi, dword [esp + 0xcc]
mov dword [esp + 0x70], edi
mov dword [esp + 0x10], ecx
mov dword [esp + 0x54], 0
mov dword [esp + 0x58], ebp
test eax, 0x400
je 0x497105
mov ebx, eax
mov ebp, 2
shr ebx, 0xb
mov edx, 0x49a700
not ebx
mov dword [esp + 0x58], ebp
and ebx, 1
jmp 0x49713b
test eax, 0x1000
je 0x497126
mov ebx, eax
mov ebp, 2
shr ebx, 0xd
mov edx, 0x49a780
not ebx
mov dword [esp + 0x58], ebp
and ebx, 1
jmp 0x49713b
test eax, 0x100
je 0x497177
mov ebx, eax
mov edx, fcn.0049a800
shr ebx, 9
not ebx
and ebx, ebp
mov dword [esp + 0x1c], edx
mov esi, ebx
mov dword [esp + 0x64], ebx
mov dword [esp + 0x5c], ebp
mov dword [esp + 0x60], esi
test eax, 0x800
jne 0x4971a3
mov dword [esp + 0x64], ebx
mov ebx, ebp
mov dword [esp + 0x58], ebp
mov dword [esp + 0x1c], edx
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x60], esi
test eax, 0x2000
je 0x497201
jmp 0x4971da
mov dword [esp + 0x64], 0
mov dword [esp + 0x60], 0
test eax, 0x800
je 0x4971be
mov ebp, 2
mov dword [esp + 0x1c], 0x49a700
mov dword [esp + 0x58], ebp
mov dword [esp + 0x5c], ebp
mov edx, 1
mov dword [esp + 0x4c], 0x49a9b0
mov dword [esp + 0x34], edx
mov dword [esp + 0x6c], 4
jmp 0x497217
test eax, 0x2000
je 0x4971f5
mov ebp, 2
mov dword [esp + 0x1c], 0x49a780
mov dword [esp + 0x58], ebp
mov dword [esp + 0x5c], ebp
mov edx, 1
mov dword [esp + 0x4c], 0x49a9d0
mov dword [esp + 0x34], edx
mov dword [esp + 0x6c], 4
jmp 0x497217
mov dword [esp + 0x1c], fcn.0049a800
mov dword [esp + 0x5c], ebp
mov dword [esp + 0x4c], fcn.00499750
mov edx, ebp
mov dword [esp + 0x34], ebp
mov dword [esp + 0x6c], 6
imul ecx, edx
add ecx, dword [edi + 4]
add ecx, ebp
push ecx
push edi
call fcn.00496fd0
add esp, 8
test eax, eax
je 0x4980d0
push dword [esp + 0x10]
mov ebx, dword [edi + 8]
lea eax, [esp + 0x1c]
mov esi, dword [edi + 4]
sub ebx, ebp
push dword [esp + 0x24]
add esi, dword [edi]
add ebx, dword [edi]
push eax
mov dword [esp + 0x34], esi
mov dword [esp + 0x48], ebx
call dword [esp + 0x58]
mov ecx, eax
add esp, 0xc
mov dword [esp + 0x30], ecx
test ecx, ecx
je case.default.0x49802f
jns 0x497301
push dword [esp + 0x18]
mov eax, ebx
sub eax, esi
push eax
push esi
call dword [esp + 0x28]
add esp, 0xc
test eax, eax
jne 0x4972d6
mov ecx, dword [esp + 0x10]
imul ecx, dword [esp + 0x34]
mov dword [esp + 0x14], ecx
nop
sub esi, dword [edi]
lea eax, [ecx + ebp]
add eax, dword [edi + 8]
push eax
push edi
mov dword [edi + 4], esi
call fcn.00496fd0
add esp, 8
test eax, eax
je 0x4980d0
mov ebx, dword [edi]
mov esi, dword [edi + 4]
push dword [esp + 0x18]
add esi, ebx
sub ebx, ebp
add ebx, dword [edi + 8]
mov eax, ebx
mov dword [esp + 0x40], ebx
sub eax, esi
push eax
push esi
call dword [esp + 0x28]
mov ecx, dword [esp + 0x20]
add esp, 0xc
test eax, eax
je 0x497290
mov ecx, dword [esp + 0x20]
add esi, eax
mov edx, dword [esp + 0x10]
sub ecx, dword [esp + 0x30]
add edx, dword [esp + 0x30]
mov dword [esp + 0x28], esi
mov dword [esp + 0x20], ecx
mov dword [esp + 0x10], edx
mov dword [esp + 0x54], 0xffffffff
jmp 0x497fc4
cmp ecx, dword [esp + 0x6c]
je 0x497318
cmp dword [esp + 0x60], 0
jne 0x497318
mov edx, dword [esp + 0x20]
mov dword [esp + 0x24], edx
jmp 0x497322
mov edx, dword [esp + 0x20]
xor eax, eax
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x10]
add edx, ecx
sub eax, ecx
mov dword [esp + 0x20], edx
push eax
mov dword [esp + 0x14], eax
lea eax, [esp + 0x48]
push edx
push eax
call dword [esp + 0x58]
mov edx, eax
add esp, 0xc
mov dword [esp + 0x50], edx
test edx, edx
jle 0x497e34
nop
cmp edx, dword [esp + 0x6c]
je 0x497367
cmp dword [esp + 0x64], 0
jne 0x497367
mov eax, dword [esp + 0x20]
mov dword [esp + 0x38], eax
jmp 0x497373
mov eax, dword [esp + 0x20]
mov dword [esp + 0x38], 0
sub dword [esp + 0x10], edx
add eax, edx
mov edx, dword [esp + 0x44]
mov dword [esp + 0x20], eax
mov eax, edx
shr eax, 8
mov dword [esp + 0x40], eax
cmp eax, 0x1d2
ja 0x497760
cmp byte [eax + 0x6b5370], 0
je 0x497760
mov eax, dword [esp + 0x18]
lea ecx, [eax - 0x1100]
cmp ecx, 0x12
ja 0x4974db
add edx, 0xffffee9f
cmp edx, 0x14
ja 0x4973e6
imul ecx, ecx, 0x15
mov dword [esp + 0x24], 0
add ecx, edx
lea eax, [ecx*8]
sub eax, ecx
lea eax, [eax*4 + 0xac00]
mov dword [esp + 0x18], eax
jmp 0x497846
mov ecx, dword [esp + 0x24]
test ecx, ecx
je 0x497466
mov eax, dword [esp + 0x30]
add eax, esi
cmp eax, ebx
jbe 0x497435
mov eax, dword [esp + 0x10]
imul eax, dword [esp + 0x34]
sub esi, dword [edi]
mov dword [edi + 4], esi
add eax, ebp
add eax, dword [edi + 8]
push eax
push edi
call fcn.00496fd0
add esp, 8
test eax, eax
je 0x4980d0
mov ebx, dword [edi]
mov esi, dword [edi + 4]
mov ecx, dword [esp + 0x24]
add esi, ebx
sub ebx, ebp
mov dword [esp + 0x28], esi
add ebx, dword [edi + 8]
mov dword [esp + 0x3c], ebx
mov eax, dword [esp + 0x30]
dec eax
cmp eax, 3
ja case.default.0x4977b9
jmp dword [eax*4 + 0x4980ec]
mov al, byte [ecx]
mov byte [esi], al
inc esi
inc ecx
mov al, byte [ecx]
mov byte [esi], al
inc esi
inc ecx
mov al, byte [ecx]
mov byte [esi], al
inc esi
inc ecx
mov al, byte [ecx]
mov byte [esi], al
inc esi
jmp 0x49782a
push eax
mov eax, ebx
sub eax, esi
push eax
push esi
call dword [esp + 0x28]
add esp, 0xc
test eax, eax
jne 0x497828
mov ecx, dword [esp + 0x10]
imul ecx, dword [esp + 0x34]
mov dword [esp + 0x14], ecx
nop dword [eax]
sub esi, dword [edi]
lea eax, [ecx + ebp]
add eax, dword [edi + 8]
push eax
push edi
mov dword [edi + 4], esi
call fcn.00496fd0
add esp, 8
test eax, eax
je 0x4980d0
mov ebx, dword [edi]
mov esi, dword [edi + 4]
push dword [esp + 0x18]
add esi, ebx
sub ebx, ebp
add ebx, dword [edi + 8]
mov eax, ebx
mov dword [esp + 0x40], ebx
sub eax, esi
push eax
push esi
call dword [esp + 0x28]
mov ecx, dword [esp + 0x20]
add esp, 0xc
test eax, eax
je 0x497490
jmp 0x497828
lea ecx, [eax - 0xac00]
mov dword [esp + 0x14], ecx
cmp ecx, 0x2ba3
ja 0x49761f
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
lea eax, [ecx*8]
sub eax, ecx
mov ecx, dword [esp + 0x14]
shl eax, 2
sub ecx, eax
jne 0x49761b
mov ecx, dword [esp + 0x44]
add ecx, 0xffffee59
lea eax, [ecx - 1]
cmp eax, 0x1a
ja 0x497540
add dword [esp + 0x18], ecx
mov dword [esp + 0x24], 0
jmp 0x497846
mov ecx, dword [esp + 0x24]
test ecx, ecx
je 0x4975a4
mov eax, dword [esp + 0x30]
add eax, esi
cmp eax, ebx
jbe 0x49758f
mov eax, dword [esp + 0x10]
imul eax, dword [esp + 0x34]
sub esi, dword [edi]
mov dword [edi + 4], esi
add eax, ebp
add eax, dword [edi + 8]
push eax
push edi
call fcn.00496fd0
add esp, 8
test eax, eax
je 0x4980d0
mov ebx, dword [edi]
mov esi, dword [edi + 4]
mov ecx, dword [esp + 0x24]
add esi, ebx
sub ebx, ebp
mov dword [esp + 0x28], esi
add ebx, dword [edi + 8]
mov dword [esp + 0x3c], ebx
mov eax, dword [esp + 0x30]
dec eax
cmp eax, 3
ja case.default.0x4977b9
jmp dword [eax*4 + 0x4980fc]
push dword [esp + 0x18]
mov eax, ebx
sub eax, esi
push eax
push esi
call dword [esp + 0x28]
add esp, 0xc
test eax, eax
jne 0x497828
mov ecx, dword [esp + 0x10]
imul ecx, dword [esp + 0x34]
mov dword [esp + 0x14], ecx
nop word [eax + eax]
sub esi, dword [edi]
lea eax, [ecx + ebp]
add eax, dword [edi + 8]
push eax
push edi
mov dword [edi + 4], esi
call fcn.00496fd0
add esp, 8
test eax, eax
je 0x4980d0
mov ebx, dword [edi]
mov esi, dword [edi + 4]
push dword [esp + 0x18]
add esi, ebx
sub ebx, ebp
add ebx, dword [edi + 8]
mov eax, ebx
mov dword [esp + 0x40], ebx
sub eax, esi
push eax
push esi
call dword [esp + 0x28]
mov ecx, dword [esp + 0x20]
add esp, 0xc
test eax, eax
je 0x4975d0
jmp 0x497828
mov eax, dword [esp + 0x18]
push dword [esp + 0x44]
push eax
call fcn.00499c70
add esp, 8
test eax, eax
je 0x497641
mov dword [esp + 0x18], eax
mov dword [esp + 0x24], 0
jmp 0x497846
mov edx, dword [esp + 0x44]
cmp edx, 0x1d244
ja 0x497683
mov eax, dword [esp + 0x40]
movzx ecx, byte [eax + 0x6b5ee8]
mov eax, edx
shr eax, 4
add ecx, ecx
and eax, 0xf
and edx, 0xf
movzx eax, byte [eax + ecx*8 + 0x6b5c78]
add eax, eax
movzx ecx, byte [edx + eax*8 + 0x6b5548]
mov dword [esp + 0x48], ecx
test ecx, ecx
jne 0x49786d
mov ecx, dword [esp + 0x24]
test ecx, ecx
je 0x4976e7
mov eax, dword [esp + 0x30]
add eax, esi
cmp eax, ebx
jbe 0x4976d2
mov eax, dword [esp + 0x10]
imul eax, dword [esp + 0x34]
sub esi, dword [edi]
mov dword [edi + 4], esi
add eax, ebp
add eax, dword [edi + 8]
push eax
push edi
call fcn.00496fd0
add esp, 8
test eax, eax
je 0x4980d0
mov ebx, dword [edi]
mov esi, dword [edi + 4]
mov ecx, dword [esp + 0x24]
add esi, ebx
sub ebx, ebp
mov dword [esp + 0x28], esi
add ebx, dword [edi + 8]
mov dword [esp + 0x3c], ebx
mov eax, dword [esp + 0x30]
dec eax
cmp eax, 3
ja case.default.0x4977b9
jmp dword [eax*4 + 0x49810c]
push dword [esp + 0x18]
mov eax, ebx
sub eax, esi
push eax
push esi
call dword [esp + 0x28]
add esp, 0xc
test eax, eax
jne 0x497828
mov ecx, dword [esp + 0x10]
imul ecx, dword [esp + 0x34]
mov dword [esp + 0x14], ecx
nop dword [eax]
sub esi, dword [edi]
lea eax, [ecx + ebp]
add eax, dword [edi + 8]
push eax
push edi
mov dword [edi + 4], esi
call fcn.00496fd0
add esp, 8
test eax, eax
je 0x4980d0
mov ebx, dword [edi]
mov esi, dword [edi + 4]
push dword [esp + 0x18]
add esi, ebx
sub ebx, ebp
add ebx, dword [edi + 8]
mov eax, ebx
mov dword [esp + 0x40], ebx
sub eax, esi
push eax
push esi
call dword [esp + 0x28]
mov ecx, dword [esp + 0x20]
add esp, 0xc
test eax, eax
je 0x497710
jmp 0x497828
mov ecx, dword [esp + 0x24]
test ecx, ecx
je 0x4977c0
mov eax, dword [esp + 0x30]
add eax, esi
cmp eax, ebx
jbe 0x4977af
mov eax, dword [esp + 0x10]
imul eax, dword [esp + 0x34]
sub esi, dword [edi]
mov dword [edi + 4], esi
add eax, ebp
add eax, dword [edi + 8]
push eax
push edi
call fcn.00496fd0
add esp, 8
test eax, eax
je 0x4980d0
mov ebx, dword [edi]
mov esi, dword [edi + 4]
mov ecx, dword [esp + 0x24]
add esi, ebx
sub ebx, ebp
mov dword [esp + 0x28], esi
add ebx, dword [edi + 8]
mov dword [esp + 0x3c], ebx
mov eax, dword [esp + 0x30]
dec eax
cmp eax, 3
ja case.default.0x4977b9
jmp dword [eax*4 + 0x49811c]
push dword [esp + 0x18]
mov eax, ebx
sub eax, esi
push eax
push esi
call dword [esp + 0x28]
add esp, 0xc
test eax, eax
jne 0x497828
mov ecx, dword [esp + 0x10]
imul ecx, dword [esp + 0x34]
mov dword [esp + 0x14], ecx
sub esi, dword [edi]
lea eax, [ecx + ebp]
add eax, dword [edi + 8]
push eax
push edi
mov dword [edi + 4], esi
call fcn.00496fd0
add esp, 8
test eax, eax
je 0x4980d0
mov ebx, dword [edi]
mov esi, dword [edi + 4]
push dword [esp + 0x18]
add esi, ebx
sub ebx, ebp
add ebx, dword [edi + 8]
mov eax, ebx
mov dword [esp + 0x40], ebx
sub eax, esi
push eax
push esi
call dword [esp + 0x28]
mov ecx, dword [esp + 0x20]
add esp, 0xc
test eax, eax
je 0x4977e2
add esi, eax
mov dword [esp + 0x28], esi
mov eax, dword [esp + 0x44]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 0x30], eax
push dword [esp + 0x10]
lea eax, [esp + 0x48]
push dword [esp + 0x24]
push eax
call dword [esp + 0x58]
mov edx, eax
add esp, 0xc
mov dword [esp + 0x50], edx
test edx, edx
jg 0x497350
jmp 0x497e34
mov eax, dword [esp + 0x44]
mov edx, dword [esp + 0x10]
mov dword [esp + 0x74], eax
mov eax, 1
mov dword [esp + 0x38], 0
mov dword [esp + 0x9c], ecx
mov dword [esp + 0x2c], eax
shl eax, 2
lea ecx, [esp + 0x74]
push edx
push dword [esp + 0x24]
mov dword [esp + 0x48], eax
add eax, ecx
push eax
call dword [esp + 0x58]
add esp, 0xc
mov dword [esp + 0x68], eax
test eax, eax
jle 0x49796f
mov edx, dword [esp + 0x40]
lea eax, [esp + 0x74]
mov edx, dword [eax + edx]
cmp edx, 0x1d244
jbe 0x4978ce
xor ecx, ecx
jmp 0x4978f9
mov eax, edx
shr eax, 8
movzx ecx, byte [eax + 0x6b5ee8]
mov eax, edx
shr eax, 4
add ecx, ecx
and eax, 0xf
movzx eax, byte [eax + ecx*8 + 0x6b5c78]
add eax, eax
and edx, 0xf
movzx ecx, byte [edx + eax*8 + 0x6b5548]
mov eax, dword [esp + 0x48]
mov dword [esp + 0x38], ecx
cmp eax, ecx
jb 0x497914
cmp eax, 0xe4
je 0x497914
cmp ecx, 0xe4
jne 0x497948
mov eax, dword [esp + 0x68]
add dword [esp + 0x20], eax
mov edx, dword [esp + 0x10]
sub edx, eax
mov dword [esp + 0x48], ecx
mov eax, dword [esp + 0x40]
mov dword [esp + 0x10], edx
mov dword [esp + eax + 0x9c], ecx
mov eax, dword [esp + 0x2c]
inc eax
mov dword [esp + 0x2c], eax
cmp eax, 0xa
jge 0x497955
jmp 0x497891
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x38], ecx
cmp eax, 0xa
jl 0x497977
mov dword [esp + 0x54], 0xffffffff
mov dword [esp + 0x2c], 0xa
mov dword [esp + 0x40], 1
jmp 0x4979ac
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x20]
mov dword [esp + 0x20], edx
mov edx, dword [esp + 0x54]
mov dword [esp + 0x54], edx
mov edx, dword [esp + 0x48]
mov dword [esp + 0x48], edx
mov edx, dword [esp + 0x10]
mov dword [esp + 0x38], ecx
mov dword [esp + 0x40], 1
mov dword [esp + 0x10], edx
cmp eax, 1
jle 0x497b70
mov edi, dword [esp + 0x2c]
mov ebp, dword [esp + 0x38]
mov ebx, dword [esp + 0x40]
mov esi, dword [esp + 0x48]
nop dword [eax]
lea eax, [ebx*4]
push dword [esp + eax + 0x74]
mov dword [esp + 0x44], eax
push dword [esp + 0x1c]
call fcn.00499c70
mov ecx, eax
add esp, 8
lea eax, [ebx + 1]
mov dword [esp + 0x14], eax
test ecx, ecx
jne 0x4979f0
mov ebx, eax
jmp 0x497b54
mov edi, dword [esp + 0x14]
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x24], 0
cmp edi, ecx
jge 0x497a2e
mov edx, dword [esp + 0x40]
nop dword [eax]
mov eax, dword [esp + edx + 0x78]
lea edx, [edx + 4]
mov dword [esp + edx + 0x70], eax
inc edi
mov eax, dword [esp + edx + 0x9c]
mov dword [esp + edx + 0x98], eax
cmp edi, ecx
jl 0x497a10
dec ecx
mov dword [esp + 0x2c], ecx
test ecx, ecx
jle 0x497b4e
cmp ebx, ecx
jne 0x497b4e
cmp dword [esp + 0x68], 0
jle 0x497b4e
cmp ebp, esi
jne 0x497b4e
mov ebx, dword [esp + ecx*4 + 0x98]
mov dword [esp + 0x48], ebx
cmp ecx, 0xa
jge 0x497b1e
mov esi, dword [esp + 0x10]
mov edx, dword [esp + 0x20]
lea ebp, [ecx*4]
push esi
lea edi, [esp + 0x78]
push edx
add edi, ebp
push edi
call dword [esp + 0x58]
mov ecx, eax
add esp, 0xc
mov dword [esp + 0x68], ecx
test ecx, ecx
jle 0x497b35
mov edx, dword [edi]
cmp edx, 0x1d244
jbe 0x497aa5
xor eax, eax
jmp 0x497ad4
mov eax, edx
shr eax, 8
movzx ecx, byte [eax + 0x6b5ee8]
mov eax, edx
shr eax, 4
add ecx, ecx
and eax, 0xf
movzx eax, byte [eax + ecx*8 + 0x6b5c78]
mov ecx, dword [esp + 0x68]
add eax, eax
and edx, 0xf
movzx eax, byte [edx + eax*8 + 0x6b5548]
mov dword [esp + 0x38], eax
cmp ebx, eax
jl 0x497aeb
cmp ebx, 0xe4
je 0x497aeb
cmp eax, 0xe4
jne 0x497b35
mov edx, dword [esp + 0x20]
sub esi, ecx
add edx, ecx
mov dword [esp + 0x10], esi
mov ecx, dword [esp + 0x2c]
mov ebx, eax
inc ecx
mov dword [esp + 0x20], edx
mov dword [esp + 0x48], ebx
mov dword [esp + ebp + 0x9c], eax
mov dword [esp + 0x2c], ecx
cmp ecx, 0xa
jl 0x497a72
mov ebp, dword [esp + 0x38]
mov esi, dword [esp + 0x48]
mov edi, 0xa
mov dword [esp + 0x54], 0xffffffff
mov dword [esp + 0x2c], edi
jmp 0x497b52
mov ecx, dword [esp + 0x2c]
cmp ecx, 0xa
jge 0x497b1a
mov ebp, dword [esp + 0x38]
mov edi, ecx
mov esi, dword [esp + 0x48]
mov dword [esp + 0x2c], ecx
jmp 0x497b52
mov edi, dword [esp + 0x2c]
xor ebx, ebx
cmp ebx, edi
jl 0x4979c0
mov esi, dword [esp + 0x28]
mov edi, dword [esp + 0x70]
mov ebx, dword [esp + 0x3c]
mov ebp, dword [esp + 0x58]
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x24]
test ecx, ecx
je 0x497bf0
mov eax, dword [esp + 0x30]
add eax, esi
cmp eax, ebx
jbe 0x497bbb
imul edx, dword [esp + 0x34]
sub esi, dword [edi]
mov dword [edi + 4], esi
add edx, ebp
add edx, dword [edi + 8]
push edx
push edi
call fcn.00496fd0
add esp, 8
test eax, eax
je 0x4980d0
mov ebx, dword [edi]
mov esi, dword [edi + 4]
mov ecx, dword [esp + 0x24]
add esi, ebx
sub ebx, ebp
mov dword [esp + 0x28], esi
add ebx, dword [edi + 8]
mov dword [esp + 0x3c], ebx
mov eax, dword [esp + 0x30]
dec eax
cmp eax, 3
ja case.default.0x497bc5
jmp dword [eax*4 + 0x49812c]
mov al, byte [ecx]
mov byte [esi], al
inc esi
inc ecx
mov al, byte [ecx]
mov byte [esi], al
inc esi
inc ecx
mov al, byte [ecx]
mov byte [esi], al
inc esi
inc ecx
mov al, byte [ecx]
mov byte [esi], al
inc esi
mov dword [esp + 0x28], esi
xor eax, eax
mov dword [esp + 0x24], eax
jmp 0x497c5e
push dword [esp + 0x18]
mov eax, ebx
sub eax, esi
push eax
push esi
call dword [esp + 0x28]
add esp, 0xc
test eax, eax
jne 0x497c58
mov ecx, dword [esp + 0x10]
imul ecx, dword [esp + 0x34]
mov dword [esp + 0x14], ecx
sub esi, dword [edi]
lea eax, [ecx + ebp]
add eax, dword [edi + 8]
push eax
push edi
mov dword [edi + 4], esi
call fcn.00496fd0
add esp, 8
test eax, eax
je 0x4980d0
mov ebx, dword [edi]
mov esi, dword [edi + 4]
push dword [esp + 0x18]
add esi, ebx
sub ebx, ebp
add ebx, dword [edi + 8]
mov eax, ebx
mov dword [esp + 0x40], ebx
sub eax, esi
push eax
push esi
call dword [esp + 0x28]
mov ecx, dword [esp + 0x20]
add esp, 0xc
test eax, eax
je 0x497c12
add esi, eax
mov dword [esp + 0x28], esi
cmp dword [esp + 0x2c], 0
mov dword [esp + 0x14], 0
jle 0x497d0c
lea eax, [esp + 0x74]
mov dword [esp + 0x40], eax
nop dword [eax]
push dword [eax]
mov eax, ebx
sub eax, esi
push eax
push esi
call dword [esp + 0x28]
add esp, 0xc
test eax, eax
jne 0x497ce8
mov ecx, dword [esp + 0x10]
imul ecx, dword [esp + 0x34]
mov dword [esp + 0x28], ecx
sub esi, dword [edi]
lea eax, [ecx + ebp]
add eax, dword [edi + 8]
push eax
push edi
mov dword [edi + 4], esi
call fcn.00496fd0
add esp, 8
test eax, eax
je 0x4980d0
mov ebx, dword [edi]
mov esi, dword [edi + 4]
mov eax, dword [esp + 0x40]
add esi, ebx
sub ebx, ebp
add ebx, dword [edi + 8]
mov dword [esp + 0x3c], ebx
push dword [eax]
mov eax, ebx
sub eax, esi
push eax
push esi
call dword [esp + 0x28]
mov ecx, dword [esp + 0x34]
add esp, 0xc
test eax, eax
je 0x497ca0
mov ecx, dword [esp + 0x14]
add esi, eax
mov eax, dword [esp + 0x40]
inc ecx
add eax, 4
mov dword [esp + 0x28], esi
mov dword [esp + 0x14], ecx
mov dword [esp + 0x40], eax
cmp ecx, dword [esp + 0x2c]
jl 0x497c80
cmp dword [esp + 0x68], 0
mov edx, dword [esp + 0x10]
jle 0x497e38
mov eax, dword [esp + 0x48]
cmp dword [esp + 0x38], eax
jne 0x497e38
test edx, edx
je 0x497e38
push edx
push dword [esp + 0x24]
lea eax, [esp + 0x7c]
push eax
call dword [esp + 0x58]
mov ecx, eax
add esp, 0xc
mov dword [esp + 0x14], ecx
test ecx, ecx
jle 0x497e34
mov edx, dword [esp + 0x74]
cmp edx, 0x1d244
jbe 0x497d60
xor eax, eax
jmp 0x497d91
mov eax, edx
shr eax, 8
movzx ecx, byte [eax + 0x6b5ee8]
mov eax, edx
shr eax, 4
add ecx, ecx
and eax, 0xf
movzx ecx, byte [eax + ecx*8 + 0x6b5c78]
mov eax, edx
add ecx, ecx
and eax, 0xf
movzx eax, byte [eax + ecx*8 + 0x6b5548]
mov ecx, dword [esp + 0x14]
cmp dword [esp + 0x48], eax
jg 0x497e34
add dword [esp + 0x20], ecx
sub dword [esp + 0x10], ecx
mov dword [esp + 0x48], eax
mov eax, ebx
push edx
sub eax, esi
push eax
push esi
call dword [esp + 0x28]
add esp, 0xc
test eax, eax
jne 0x497e0c
mov ecx, dword [esp + 0x10]
imul ecx, dword [esp + 0x34]
mov dword [esp + 0x14], ecx
sub esi, dword [edi]
lea eax, [ecx + ebp]
add eax, dword [edi + 8]
push eax
push edi
mov dword [edi + 4], esi
call fcn.00496fd0
add esp, 8
test eax, eax
je 0x4980d0
mov ebx, dword [edi]
mov esi, dword [edi + 4]
push dword [esp + 0x74]
add esi, ebx
sub ebx, ebp
add ebx, dword [edi + 8]
mov eax, ebx
mov dword [esp + 0x40], ebx
sub eax, esi
push eax
push esi
call dword [esp + 0x28]
mov ecx, dword [esp + 0x20]
add esp, 0xc
test eax, eax
je 0x497dc6
push dword [esp + 0x10]
add esi, eax
lea eax, [esp + 0x78]
push dword [esp + 0x24]
mov dword [esp + 0x30], esi
push eax
call dword [esp + 0x58]
mov ecx, eax
mov dword [esp + 0x20], eax
add esp, 0xc
test ecx, ecx
jg 0x497d50
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x50]
test eax, eax
jns 0x497fbe
mov ecx, dword [esp + 0x24]
test ecx, ecx
je 0x497ec0
mov eax, dword [esp + 0x30]
add eax, esi
cmp eax, ebx
jbe 0x497e8b
imul edx, dword [esp + 0x34]
sub esi, dword [edi]
mov dword [edi + 4], esi
add edx, ebp
add edx, dword [edi + 8]
push edx
push edi
call fcn.00496fd0
add esp, 8
test eax, eax
je 0x4980d0
mov ebx, dword [edi]
mov esi, dword [edi + 4]
mov ecx, dword [esp + 0x24]
add esi, ebx
sub ebx, ebp
add ebx, dword [edi + 8]
mov dword [esp + 0x3c], ebx
mov eax, dword [esp + 0x30]
dec eax
cmp eax, 3
ja case.default.0x497e99
jmp dword [eax*4 + 0x49813c]
mov al, byte [ecx]
mov byte [esi], al
inc esi
inc ecx
mov al, byte [ecx]
mov byte [esi], al
inc esi
inc ecx
mov al, byte [ecx]
mov byte [esi], al
inc esi
inc ecx
mov al, byte [ecx]
mov byte [esi], al
inc esi
jmp case.default.0x497e99
push dword [esp + 0x18]
mov eax, ebx
sub eax, esi
push eax
push esi
call dword [esp + 0x28]
add esp, 0xc
test eax, eax
jne 0x497f28
mov ecx, dword [esp + 0x10]
imul ecx, dword [esp + 0x34]
mov dword [esp + 0x14], ecx
sub esi, dword [edi]
lea eax, [ecx + ebp]
add eax, dword [edi + 8]
push eax
push edi
mov dword [edi + 4], esi
call fcn.00496fd0
add esp, 8
test eax, eax
je 0x4980d0
mov ebx, dword [edi]
mov esi, dword [edi + 4]
push dword [esp + 0x18]
add esi, ebx
sub ebx, ebp
add ebx, dword [edi + 8]
mov eax, ebx
mov dword [esp + 0x40], ebx
sub eax, esi
push eax
push esi
call dword [esp + 0x28]
mov ecx, dword [esp + 0x20]
add esp, 0xc
test eax, eax
je 0x497ee2
add esi, eax
push dword [esp + 0x44]
mov eax, ebx
sub eax, esi
push eax
push esi
call dword [esp + 0x28]
add esp, 0xc
test eax, eax
jne 0x497f96
mov ecx, dword [esp + 0x10]
imul ecx, dword [esp + 0x34]
mov dword [esp + 0x14], ecx
nop dword [eax]
sub esi, dword [edi]
lea eax, [ecx + ebp]
add eax, dword [edi + 8]
push eax
push edi
mov dword [edi + 4], esi
call fcn.00496fd0
add esp, 8
test eax, eax
je 0x4980d0
mov ebx, dword [edi]
mov esi, dword [edi + 4]
push dword [esp + 0x44]
add esi, ebx
sub ebx, ebp
add ebx, dword [edi + 8]
mov eax, ebx
mov dword [esp + 0x40], ebx
sub eax, esi
push eax
push esi
call dword [esp + 0x28]
mov ecx, dword [esp + 0x20]
add esp, 0xc
test eax, eax
je 0x497f50
mov ecx, dword [esp + 0x20]
add esi, eax
mov edx, dword [esp + 0x10]
sub ecx, dword [esp + 0x50]
add edx, dword [esp + 0x50]
mov dword [esp + 0x28], esi
mov dword [esp + 0x20], ecx
mov dword [esp + 0x10], edx
mov dword [esp + 0x54], 0xffffffff
jmp 0x497fc4
je 0x497fe5
mov ecx, dword [esp + 0x20]
push edx
push ecx
lea eax, [esp + 0x20]
push eax
call dword [esp + 0x58]
mov ecx, eax
mov dword [esp + 0x3c], eax
add esp, 0xc
test ecx, ecx
jne 0x497267
jmp case.default.0x49802f
mov ecx, dword [esp + 0x24]
test ecx, ecx
je 0x498050
mov eax, dword [esp + 0x30]
add eax, esi
cmp eax, ebx
jbe 0x498021
imul edx, dword [esp + 0x34]
sub esi, dword [edi]
mov dword [edi + 4], esi
add edx, dword [edi + 8]
add edx, ebp
push edx
push edi
call fcn.00496fd0
add esp, 8
test eax, eax
je 0x4980d0
mov esi, dword [edi + 4]
add esi, dword [edi]
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x30]
dec eax
cmp eax, 3
ja case.default.0x49802f
jmp dword [eax*4 + 0x49814c]
mov al, byte [ecx]
mov byte [esi], al
inc esi
inc ecx
mov al, byte [ecx]
mov byte [esi], al
inc esi
inc ecx
mov al, byte [ecx]
mov byte [esi], al
inc esi
inc ecx
mov al, byte [ecx]
mov byte [esi], al
inc esi
jmp case.default.0x49802f
push dword [esp + 0x18]
sub ebx, esi
push ebx
mov ebx, dword [esp + 0x24]
push esi
call ebx
add esp, 0xc
test eax, eax
jne 0x4980ad
mov ecx, dword [esp + 0x10]
imul ecx, dword [esp + 0x34]
mov dword [esp + 0x10], ecx
mov eax, dword [edi + 8]
sub esi, dword [edi]
add eax, ecx
add eax, ebp
mov dword [edi + 4], esi
push eax
push edi
call fcn.00496fd0
add esp, 8
test eax, eax
je 0x4980d0
mov ecx, dword [edi + 8]
mov esi, dword [edi + 4]
sub ecx, ebp
add esi, dword [edi]
add ecx, dword [edi]
push dword [esp + 0x18]
sub ecx, esi
push ecx
push esi
call ebx
mov ecx, dword [esp + 0x1c]
add esp, 0xc
test eax, eax
je 0x498072
add esi, eax
mov eax, esi
sub eax, dword [edi]
cmp dword [esp + 0x5c], 2
mov dword [edi + 4], eax
mov byte [esi], 0
jne 0x4980ca
mov edx, dword [edi + 4]
mov ecx, dword [edi]
mov byte [edx + ecx + 1], 0
mov eax, dword [esp + 0x54]
jmp 0x4980d3
or eax, 0xffffffff
mov ecx, dword [esp + 0xc4]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0067bc9f
add esp, 0xb8
ret