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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0xc8
push esi
xor eax, eax
mov dword [esp + 0x10], edx
push edi
mov edi, ecx
mov dword [esp + 0xac], eax
mov dword [esp + 0x88], eax
mov dword [esp + 0x80], eax
mov dword [esp + 0x6c], eax
mov esi, dword [edi + 8]
mov eax, dword [edi]
mov dword [esp + 0x10], edi
mov dword [esp + 0xa4], 0
mov dword [esp + 0x9c], 0
mov byte [esp + 0x53], 0
mov dword [esp + 0xa8], 0
mov dword [esp + 0xa0], 0
mov dword [esp + 0x98], eax
mov dword [esp + 0x58], esi
test esi, esi
jne 0x497f06
cmp dword [edi + 0x74], esi
jne 0x497ef7
test byte [eax + 0x4c], 8
jne 0x497ef7
mov byte [edi + 0x17], 1
call fcn.00460280
mov edx, dword [esp + 0x14]
mov esi, eax
mov dword [esp + 0x58], esi
movsx eax, word [edx + 0x2a]
mov ecx, dword [edx + 0x24]
mov dword [esp + 0x18], eax
test cl, cl
js 0x497f2a
mov dword [esp + 0x44], 0
mov dword [esp + 0x90], 1
jmp 0x497f5e
mov eax, dword [edx + 8]
mov dword [esp + 0x44], eax
test eax, eax
je 0x497f53
mov esi, eax
mov eax, dword [esi + 0x38]
and al, 3
cmp al, 2
je 0x497f47
mov esi, dword [esi + 0x14]
test esi, esi
jne 0x497f37
mov dword [esp + 0x44], esi
mov esi, dword [esp + 0x58]
mov eax, dword [esp + 0x44]
movzx eax, word [eax + 0x32]
mov dword [esp + 0x90], eax
test ecx, 0x800
je 0x4982a9
xor eax, eax
xor edi, edi
mov dword [esp + 0x54], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x40], edi
mov ecx, dword [esp + 0x18]
nop
xor edx, edx
mov dword [esp + 0x34], edx
test ecx, ecx
jle 0x498256
mov eax, dword [esp + 0x18]
xor edi, edi
mov dword [esp + 0x5c], edi
nop dword [eax + eax]
mov ecx, dword [esp + 0x14]
mov ecx, dword [ecx + 4]
add ecx, edi
mov dword [esp + 0x20], ecx
movzx edi, byte [ecx + 0xc]
mov dword [esp + 0x3c], edi
test edi, edi
je 0x49822c
mov eax, dword [esp + 0x14]
movsx eax, word [eax + 0x28]
cmp edx, eax
je 0x498228
movzx eax, word [ecx + 0x10]
and eax, 0x60
je 0x497fe6
cmp dword [esp + 0x54], 0
jne 0x497fe6
inc dword [esp + 0x40]
jmp 0x498228
cmp dword [ebp + 0x2c], 0
mov ecx, dword [esp + 0x20]
je 0x498005
mov edi, dword [ebp + 0x2c]
cmp dword [edi + edx*4], 0
mov edi, dword [esp + 0x3c]
jge 0x498005
test eax, eax
je 0x498228
cmp byte [ebp + 0x20], 0xb
mov edx, dword [esp + 0x34]
jne 0x49804f
cmp edi, 0xb
jne 0x49804f
mov edi, 2
cmp dword [esp + 0x54], 0
je 0x498028
test eax, eax
je 0x498228
mov ecx, dword [esp + 0x14]
call fcn.00486a10
mov edx, dword [ebp + 0x14]
cwde
inc edx
add edx, eax
lea eax, [edi - 1]
mov dword [esp + 0x38], edx
cmp eax, 4
ja case.0x498048.4
jmp dword [eax*4 + 0x49a168]
cmp byte [ebp + 0x20], 0xb
movzx edi, byte [ebp + 0x20]
cmove edi, dword [esp + 0x3c]
mov edx, dword [esp + 0x34]
cmp edi, 5
jne 0x498019
cmp dword [esp + 0x54], 0
jne 0x498072
cmp dword [ecx + 4], 0
jne 0x498028
mov edi, 2
jmp 0x498028
push edx
mov edx, 0x33
mov ecx, esi
call fcn.00460700
mov edi, dword [esp + 0x3c]
add esp, 4
mov ecx, dword [esp + 0x10]
inc dword [esp + 0x48]
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x20]
push edi
mov eax, dword [eax + 4]
mov edx, eax
mov dword [esp + 0x7c], eax
call fcn.0047cee0
add esp, 4
cmp eax, edi
je 0x4980dc
mov ecx, dword [esp + 0x10]
mov ecx, dword [ecx + 8]
test ecx, ecx
je 0x4980dc
mov edx, dword [esp + 0x78]
push edi
push eax
mov edx, dword [edx + 4]
and edx, 0x200000
neg edx
sbb edx, edx
add edx, 0x4e
call fcn.00460760
add esp, 8
mov ecx, dword [esp + 0x70]
mov edx, dword [esi + 0x6c]
test ecx, ecx
jns 0x4980ea
lea ecx, [edx - 1]
mov eax, dword [esi]
cmp byte [eax + 0x51], 0
je 0x4980ff
mov eax, 0x538670
mov dword [eax + 8], edx
jmp 0x498228
mov eax, dword [esi + 0x68]
lea ecx, [ecx + ecx*4]
mov dword [eax + ecx*4 + 8], edx
lea eax, [eax + ecx*4]
jmp 0x498228
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx + 0x74]
test eax, eax
cmovne ecx, eax
mov byte [ecx + 0x15], 1
mov eax, dword [esp + 0x20]
push dword [eax]
mov eax, dword [esp + 0x18]
push dword [eax]
push str._s._s
push dword [esp + 0xa4]
call fcn.0043d4e0
mov ecx, dword [esi + 0x6c]
add esp, 0x10
mov edx, dword [esp + 0x38]
mov dword [esp + 0x3c], eax
cmp dword [esi + 0x70], ecx
jg 0x498169
push edx
push edi
push 0x513
mov edx, 0x43
mov ecx, esi
call fcn.004605f0
add esp, 0xc
jmp 0x498194
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4], 0x43
mov dword [eax + ecx*4 + 4], 0x513
mov dword [eax + ecx*4 + 8], edi
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [esi]
mov edx, dword [esp + 0x3c]
cmp byte [ecx + 0x51], 0
je 0x4981b0
push edx
mov edx, 0xfffffff9
call fcn.00461360
add esp, 4
jmp 0x4981c2
mov eax, dword [esi + 0x6c]
lea ecx, [eax + eax*4]
mov eax, dword [esi + 0x68]
mov byte [eax + ecx*4 - 0x13], 0xf9
mov dword [eax + ecx*4 - 4], edx
mov eax, dword [esi + 0x6c]
test eax, eax
jle 0x498228
lea ecx, [eax + eax*4]
mov edx, 1
mov eax, dword [esi + 0x68]
mov word [eax + ecx*4 - 0x12], dx
jmp 0x498228
mov ecx, dword [esi + 0x6c]
cmp dword [esi + 0x70], ecx
jg 0x4981fa
push 0
push dword [ebp + 0x24]
mov ecx, esi
push edx
mov edx, 0x32
call fcn.004605f0
add esp, 0xc
jmp 0x498228
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [ebp + 0x24]
mov dword [eax + ecx*4], 0x32
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x34]
mov edi, dword [esp + 0x5c]
inc ecx
add edi, 0x14
mov dword [esp + 0x34], ecx
mov dword [esp + 0x5c], edi
mov edx, ecx
cmp ecx, eax
jl 0x497fa0
mov eax, dword [esp + 0x54]
mov edi, dword [esp + 0x40]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x48]
test edi, edi
jne 0x498262
test edx, edx
je 0x4982a1
test eax, eax
jne 0x4982a1
mov eax, 1
mov dword [esp + 0x54], eax
test edx, edx
jle 0x497f80
mov edx, dword [esp + 0x14]
test byte [edx + 0x24], 0x60
je 0x497f80
mov ecx, dword [esp + 0x10]
push edx
mov edx, dword [ebp + 0x14]
lea edx, [edx + 1]
call fcn.004965f0
mov eax, dword [esp + 0x58]
add esp, 4
jmp 0x497f7a
mov edi, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov ecx, dword [edx + 0x18]
mov dword [esp + 0x8c], ecx
test ecx, ecx
je 0x49853f
mov eax, dword [esp + 0x98]
mov eax, dword [eax + 0x20]
and eax, 0x200
or eax, 0
jne 0x49853f
mov eax, dword [ebp + 0x14]
not eax
mov dword [edi + 0x34], eax
mov al, byte [ebp + 0x20]
cmp al, 0xb
je 0x4982eb
movzx eax, al
mov dword [esp + 0x34], eax
jmp 0x4982f3
mov dword [esp + 0x34], 2
xor edx, edx
mov dword [esp + 0x48], edx
cmp dword [ecx], edx
jle 0x498538
lea eax, [ecx + 8]
mov dword [esp + 0x70], 0xfffd
mov dword [esp + 0x20], eax
mov ecx, dword [eax - 4]
mov eax, dword [ebp + 0x2c]
mov dword [esp + 0x78], ecx
test eax, eax
je 0x498385
mov dword [esp + 0xc8], 0
xorps xmm0, xmm0
movaps xmmword [esp + 0xb0], xmm0
movq qword [esp + 0xc0], xmm0
mov dword [esp + 0xb4], 0x497de0
mov dword [esp + 0xc8], eax
test ecx, ecx
je 0x498369
mov edx, ecx
lea ecx, [esp + 0xb0]
call fcn.00473f40
mov ecx, dword [esp + 0x78]
mov edx, dword [esp + 0x48]
cmp byte [ebp + 0x1c], 0
mov ax, word [esp + 0xc4]
jne 0x49837c
and ax, word [esp + 0x70]
test ax, ax
je 0x498519
dec dword [edi + 0x38]
mov edi, dword [edi + 0x38]
push 0x10
push edi
push ecx
push dword [esp + 0x1c]
mov dword [esp + 0x48], edi
call fcn.0047e490
mov edx, dword [esp + 0x44]
add esp, 0x10
cmp edx, 4
jne 0x498402
mov ecx, dword [esi + 0x6c]
cmp dword [esi + 0x70], ecx
jg 0x4983cb
push 0
push dword [ebp + 0x24]
mov edx, 0xb
mov ecx, esi
push 0
call fcn.004605f0
add esp, 0xc
jmp 0x4984ee
mov edx, dword [ebp + 0x24]
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4], 0xb
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
jmp 0x4984ee
mov eax, dword [esp + 0x20]
mov eax, dword [eax]
mov dword [esp + 0x3c], eax
test eax, eax
jne 0x49841a
mov eax, dword [esp + 0x14]
mov eax, dword [eax]
mov dword [esp + 0x3c], eax
mov ecx, dword [esp + 0x10]
cmp edx, 5
mov eax, 2
cmove edx, eax
mov dword [esp + 0x34], edx
mov edi, dword [ecx + 8]
test edi, edi
jne 0x498454
cmp dword [ecx + 0x74], edi
jne 0x498445
mov eax, dword [ecx]
test byte [eax + 0x4c], 8
jne 0x498445
mov byte [ecx + 0x17], 1
call fcn.00460280
mov edx, dword [esp + 0x34]
mov edi, eax
mov ecx, dword [esp + 0x10]
cmp edx, 2
jne 0x498465
mov eax, dword [ecx + 0x74]
test eax, eax
cmovne ecx, eax
mov byte [ecx + 0x15], 1
mov ecx, dword [edi + 0x6c]
mov dword [esp + 0x78], ecx
cmp dword [edi + 0x70], ecx
jg 0x49848a
push 0
push edx
push 0x113
mov edx, 0x44
mov ecx, edi
call fcn.004605f0
add esp, 0xc
jmp 0x4984c1
mov esi, dword [esp + 0x58]
lea eax, [ecx + 1]
mov dword [edi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edi + 0x68]
mov dword [eax + ecx*4], 0x44
mov dword [eax + ecx*4 + 4], 0x113
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esp + 0x78]
push 0
push dword [esp + 0x40]
mov edx, eax
mov ecx, edi
call fcn.00461640
mov eax, dword [edi + 0x6c]
add esp, 8
test eax, eax
jle 0x4984ea
lea ecx, [eax + eax*4]
mov edx, 3
mov eax, dword [edi + 0x68]
mov word [eax + ecx*4 - 0x12], dx
mov edi, dword [esp + 0x38]
mov ecx, dword [esi + 0xc]
not edi
mov eax, dword [ecx + 0x3c]
add eax, dword [ecx + 0x38]
jns 0x498508
push edi
mov edx, esi
call fcn.00460e00
add esp, 4
jmp 0x498511
mov ecx, dword [ecx + 0x40]
mov eax, dword [esi + 0x6c]
mov dword [ecx + edi*4], eax
mov edi, dword [esp + 0x10]
mov edx, dword [esp + 0x48]
mov ecx, dword [esp + 0x8c]
inc edx
mov eax, dword [esp + 0x20]
add eax, 0x14
mov dword [esp + 0x48], edx
mov dword [esp + 0x20], eax
cmp edx, dword [ecx]
jl 0x498310
mov dword [edi + 0x34], 0
mov ecx, dword [ebp + 0x30]
test ecx, ecx
je 0x4985ca
cmp dword [ecx], 0
jne 0x49855c
mov byte [ebp + 0x20], 4
mov dword [ebp + 0x30], 0
jmp 0x4985ca
mov eax, dword [ecx + 0x10]
mov dword [esp + 0x9c], eax
test eax, eax
je 0x4985ca
mov edx, dword [esi + 0x6c]
mov dword [esp + 0xa0], edx
cmp dword [esi + 0x70], edx
jg 0x498597
push 0
push 0
push 0
mov edx, 0xb
mov ecx, esi
call fcn.004605f0
add esp, 0xc
mov dword [esp + 0xa0], eax
jmp 0x4985ca
lea eax, [edx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [edx + edx*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4], 0xb
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esp + 0x98]
mov edx, dword [eax + 0x20]
mov eax, dword [eax + 0x24]
mov dword [esp + 0x7c], eax
mov eax, edx
and eax, 0x6000
or eax, 0
jne 0x4985f6
xor edx, edx
mov dword [esp + 0x48], eax
mov dword [esp + 0x68], edx
jmp 0x498756
mov eax, dword [edi]
and edx, 0x2000
or edx, 0
mov ecx, dword [eax + 0x20]
mov eax, dword [eax + 0x24]
mov dword [esp + 0x7c], eax
je 0x4986a0
xor edx, edx
and ecx, 0x40000
xor edi, edi
or ecx, edx
je 0x49862e
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
call fcn.004ac490
mov edx, eax
mov ecx, edx
test edx, edx
je 0x498647
cmp byte [ecx + 8], 0x7e
jne 0x498640
movzx eax, byte [ecx + 9]
or edi, eax
mov ecx, dword [ecx + 0x20]
test ecx, ecx
jne 0x498634
xor eax, eax
test edi, edi
mov edi, dword [esp + 0x10]
cmovne eax, edx
mov dword [esp + 0x48], eax
test eax, eax
jne 0x4986ee
mov eax, dword [edi]
mov eax, dword [eax + 0x20]
and eax, 0x4000
or eax, 0
je 0x498693
mov eax, dword [esp + 0x14]
push 0
mov ecx, dword [eax + 0x48]
mov edx, dword [eax]
add ecx, 0x38
call fcn.0043ff10
add esp, 4
cmp dword [eax + 8], 0
jne 0x4986ee
mov eax, dword [esp + 0x14]
cmp dword [eax + 0x10], 0
jne 0x4986ee
mov dword [esp + 0x68], 0
jmp 0x498756
xor edx, edx
mov dword [esp + 0x48], 0
and ecx, 0x4000
mov dword [esp + 0x68], edx
or ecx, edx
je 0x4986ea
mov eax, dword [esp + 0x14]
push edx
mov ecx, dword [eax + 0x48]
mov edx, dword [eax]
add ecx, 0x38
call fcn.0043ff10
add esp, 4
cmp dword [eax + 8], 0
jne 0x4986e1
mov eax, dword [esp + 0x14]
cmp dword [eax + 0x10], 0
jne 0x4986e1
xor edx, edx
jmp 0x4986e6
mov edx, 1
mov dword [esp + 0x68], edx
test edx, edx
je 0x498756
inc dword [edi + 0x2c]
mov ecx, dword [esi + 0x6c]
mov edx, dword [edi + 0x2c]
mov dword [esp + 0x68], edx
cmp dword [esi + 0x70], ecx
jg 0x498716
push 0
push edx
push 0
mov edx, 0x45
mov ecx, esi
call fcn.004605f0
add esp, 0xc
jmp 0x498749
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov esi, dword [esp + 0x58]
mov dword [eax + ecx*4], 0x45
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
dec dword [edi + 0x38]
mov eax, dword [edi + 0x38]
mov dword [esp + 0x80], eax
cmp byte [ebp + 0x1c], 0
je 0x498bb3
cmp dword [esp + 0x44], 0
jne 0x498bb3
mov ecx, dword [esp + 0x14]
dec dword [edi + 0x38]
cmp byte [ebp + 0x20], 0xb
mov edx, dword [edi + 0x38]
movzx eax, byte [ecx + 0x32]
mov dword [esp + 0x38], edx
je 0x498789
movzx eax, byte [ebp + 0x20]
jmp 0x498794
cmp eax, 0xb
mov edi, 2
cmove eax, edi
mov edi, dword [ebp + 0x30]
mov dword [esp + 0x20], eax
test edi, edi
je 0x4987ba
cmp dword [edi + 0x10], 0
jne 0x4987ba
xor eax, eax
cmp dword [edi + 8], eax
setne al
lea eax, [eax*2 + 4]
mov dword [esp + 0x20], eax
jmp 0x49882a
cmp eax, 5
jne 0x49882a
cmp byte [ebp + 0x20], al
je 0x49882a
cmp dword [ecx + 8], 0
je 0x49882a
mov edx, dword [esi + 0x6c]
cmp dword [esi + 0x70], edx
jg 0x4987e9
push 0
push 0
push 0
lea edx, [eax + 6]
mov ecx, esi
call fcn.004605f0
add esp, 0xc
mov edx, eax
jmp 0x49881c
lea eax, [edx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [edx + edx*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4], 0xb
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
lea eax, [edx + 1]
mov edx, dword [esp + 0x38]
mov dword [esp + 0xac], eax
mov edi, dword [ebp + 0x18]
test edi, edi
je 0x498897
mov ecx, dword [esi + 0x6c]
cmp dword [esi + 0x70], ecx
jg 0x498853
push edi
push edx
push dword [ebp + 0x14]
mov edx, 0x35
mov ecx, esi
call fcn.004605f0
mov edx, dword [esp + 0x44]
add esp, 0xc
jmp 0x498880
mov edi, dword [ebp + 0x14]
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4 + 4], edi
mov edi, dword [ebp + 0x18]
mov dword [eax + ecx*4], 0x35
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], edi
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esi + 0x6c]
test eax, eax
jle 0x498897
lea ecx, [eax + eax*4]
mov edi, 0x90
mov eax, dword [esi + 0x68]
mov word [eax + ecx*4 - 0x12], di
mov ecx, dword [esi + 0x6c]
cmp dword [esi + 0x70], ecx
jg 0x4988ba
push dword [ebp + 0x14]
mov ecx, esi
push edx
push dword [ebp + 0xc]
mov edx, 0x20
call fcn.004605f0
mov edx, dword [ebp + 0x14]
add esp, 0xc
jmp 0x4988e7
mov edi, dword [ebp + 0xc]
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4 + 8], edx
mov edx, dword [ebp + 0x14]
mov dword [eax + ecx*4], 0x20
mov dword [eax + ecx*4 + 4], edi
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
mov edi, dword [esp + 0x20]
lea eax, [edi - 1]
cmp eax, 5
ja case.default.0x4988f7
jmp dword [eax*4 + 0x49a17c]
cmp dword [esp + 0x68], 0
je 0x498967
mov edi, dword [esp + 0x10]
mov ecx, edi
push 0xffffffffffffffff
push 1
push 5
mov eax, dword [edi + 0x74]
test eax, eax
push 0
push 1
push edx
push dword [ebp + 0x10]
mov edx, dword [esp + 0x30]
cmovne ecx, eax
push dword [ebp + 0xc]
push dword [esp + 0x68]
mov byte [ecx + 0x14], 1
mov ecx, edi
call fcn.0048ea00
add esp, 0x24
mov edx, 0x52
mov ecx, esi
push 1
push dword [esp + 0x6c]
call fcn.00460760
add esp, 8
mov dword [esp + 0x6c], 1
mov dword [esp + 0xa4], 1
jmp 0x498af3
mov edx, dword [esp + 0x14]
cmp dword [edx + 8], 0
je 0x498997
mov edi, dword [esp + 0x10]
mov ecx, edi
push 0xffffffffffffffff
push 0
push dword [ebp + 0x10]
mov eax, dword [edi + 0x74]
test eax, eax
push dword [ebp + 0xc]
cmovne ecx, eax
mov byte [ecx + 0x14], 1
mov ecx, edi
call fcn.0048edd0
add esp, 0x10
mov dword [esp + 0xa4], 1
jmp 0x498af3
push dword [ebp + 0xc]
mov edx, dword [ebp + 0x30]
mov ecx, dword [esp + 0x14]
push 0
push dword [esp + 0x1c]
call fcn.004b1350
add esp, 0xc
mov edx, dword [ebp + 0x24]
mov ecx, esi
call fcn.004607d0
jmp 0x498af3
mov edi, 2
mov edx, dword [esp + 0x14]
movzx eax, word [edx + 0x28]
test ax, ax
js 0x498a09
cwde
lea ecx, [eax + eax*4]
mov eax, dword [edx + 4]
push dword [eax + ecx*4]
mov eax, dword [esp + 0x14]
push dword [edx]
push str._s._s
push dword [eax]
call fcn.0043d4e0
add esp, 0x10
mov dword [esp + 0x20], 0x613
jmp 0x498a26
push dword [edx]
mov eax, dword [esp + 0x14]
push str._s.rowid
push dword [eax]
call fcn.0043d4e0
add esp, 0xc
mov dword [esp + 0x20], 0xa13
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x3c], eax
mov edx, dword [ecx + 8]
mov dword [esp + 0x34], edx
test edx, edx
jne 0x498a59
cmp dword [ecx + 0x74], edx
jne 0x498a4a
mov eax, dword [ecx]
test byte [eax + 0x4c], 8
jne 0x498a4a
mov byte [ecx + 0x17], 1
call fcn.00460280
mov ecx, dword [esp + 0x10]
mov edx, eax
mov dword [esp + 0x34], edx
cmp edi, 2
jne 0x498a6a
mov eax, dword [ecx + 0x74]
test eax, eax
cmovne ecx, eax
mov byte [ecx + 0x15], 1
mov ecx, dword [edx + 0x6c]
mov dword [esp + 0x78], ecx
cmp dword [edx + 0x70], ecx
jg 0x498a93
mov edx, dword [esp + 0x20]
push 0
push edi
mov edi, dword [esp + 0x3c]
mov ecx, edi
push edx
mov edx, 0x44
call fcn.004605f0
add esp, 0xc
jmp 0x498aca
lea eax, [ecx + 1]
mov dword [edx + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edx + 0x68]
mov edx, dword [esp + 0x20]
mov dword [eax + ecx*4 + 8], edi
mov edi, dword [esp + 0x34]
mov dword [eax + ecx*4], 0x44
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esp + 0x78]
push 0xfffffffffffffff9
push dword [esp + 0x40]
mov edx, eax
mov ecx, edi
call fcn.00461640
mov eax, dword [edi + 0x6c]
add esp, 8
test eax, eax
jle 0x498af3
lea ecx, [eax + eax*4]
mov edx, 2
mov eax, dword [edi + 0x68]
mov word [eax + ecx*4 - 0x12], dx
mov ecx, dword [esi + 0xc]
mov edx, dword [esp + 0x38]
not edx
mov eax, dword [ecx + 0x3c]
add eax, dword [ecx + 0x38]
jns 0x498b11
push edx
mov edx, esi
call fcn.00460e00
add esp, 4
jmp 0x498b1a
mov ecx, dword [ecx + 0x40]
mov eax, dword [esi + 0x6c]
mov dword [ecx + edx*4], eax
mov edi, dword [esp + 0xac]
test edi, edi
je 0x498bb3
mov ecx, dword [esi + 0x6c]
mov dword [esp + 0x88], ecx
cmp dword [esi + 0x70], ecx
jg 0x498b56
push 0
push 0
push 0
mov edx, 0xb
mov ecx, esi
call fcn.004605f0
add esp, 0xc
mov dword [esp + 0x88], eax
jmp 0x498b89
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4], 0xb
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esi]
lea ecx, [edi - 1]
mov edx, dword [esi + 0x6c]
cmp byte [eax + 0x51], 0
je 0x498b9e
mov eax, 0x538678
jmp 0x498bb1
test ecx, ecx
mov eax, edx
cmovns eax, edi
lea ecx, [eax + eax*4]
mov eax, dword [esi + 0x68]
lea eax, [eax + ecx*4]
add eax, 0xfffffff4
mov dword [eax], edx
mov edi, dword [esp + 0x14]
mov ecx, dword [esp + 0x80]
mov dword [esp + 0x18], 0
mov dword [esp + 0x5c], ecx
mov eax, dword [edi + 8]
mov dword [esp + 0x1c], eax
test eax, eax
je 0x49909c
mov edx, dword [ebp + 8]
mov dword [esp + 0x5c], ecx
xor ecx, ecx
cmp dword [edx + ecx*4], 0
je 0x499088
mov edx, dword [esp + 0x9c]
cmp edx, eax
jne 0x498cb8
mov eax, dword [esp + 0xa0]
mov edi, dword [esi + 0x6c]
inc eax
mov dword [esp + 0x64], eax
mov dword [esp + 0xa8], edi
cmp dword [esi + 0x70], edi
jg 0x498c34
push 0
push 0
push 0
mov edx, 0xb
mov ecx, esi
call fcn.004605f0
add esp, 0xc
mov dword [esp + 0xa8], eax
jmp 0x498c67
lea eax, [edi + 1]
mov dword [esi + 0x6c], eax
lea ecx, [edi + edi*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4], 0xb
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esi]
mov edx, dword [esi + 0x6c]
cmp byte [eax + 0x51], 0
je 0x498c8b
mov edi, dword [esp + 0x10]
mov eax, 0x538670
mov dword [eax + 8], edx
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x9c]
jmp 0x498cc6
mov ecx, dword [esp + 0xa0]
lea eax, [edx - 1]
mov edi, dword [esp + 0x10]
test ecx, ecx
cmovns eax, ecx
lea ecx, [eax + eax*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4 + 8], edx
mov edx, dword [esp + 0x9c]
lea eax, [eax + ecx*4]
mov eax, dword [esp + 0x1c]
jmp 0x498cc6
mov edi, dword [esp + 0x10]
dec dword [edi + 0x38]
mov ecx, dword [edi + 0x38]
mov dword [esp + 0x64], ecx
cmp byte [esp + 0x53], 0
jne 0x498ced
test edx, edx
je 0x498cd5
cmp edx, eax
jne 0x498ced
mov eax, dword [ebp + 0x14]
mov ecx, esi
mov edx, dword [esp + 0x14]
inc eax
push eax
call fcn.004963f0
add esp, 4
mov byte [esp + 0x53], 1
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
cmp dword [eax + 0x24], 0
je 0x498dc4
mov eax, dword [ebp + 8]
mov edx, dword [eax + ecx*4]
mov ecx, dword [esi + 0x6c]
cmp dword [esi + 0x70], ecx
jg 0x498d23
push 0
push edx
push 0
mov edx, 0x48
mov ecx, esi
call fcn.004605f0
add esp, 0xc
jmp 0x498d56
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov esi, dword [esp + 0x58]
mov dword [eax + ecx*4], 0x48
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [ebp + 0x14]
not eax
mov dword [edi + 0x34], eax
mov eax, dword [esp + 0x1c]
mov edx, dword [eax + 0x24]
mov eax, dword [edi]
mov dword [esp + 0x3c], eax
test edx, edx
je 0x498d85
push 0
push 0
mov ecx, eax
call fcn.00478450
mov edi, eax
add esp, 8
mov eax, dword [esp + 0x3c]
jmp 0x498d87
xor edi, edi
cmp byte [eax + 0x51], 0
jne 0x498da4
push 0x10
push dword [esp + 0x68]
push edi
push dword [esp + 0x1c]
call fcn.0047e860
mov eax, dword [esp + 0x4c]
add esp, 0x10
test edi, edi
je 0x498db1
mov edx, edi
mov ecx, eax
call fcn.00478210
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
mov dword [eax + 0x34], 0
mov eax, dword [esp + 0x1c]
mov edx, dword [ebp + 8]
movzx eax, word [eax + 0x34]
mov dword [esp + 0x70], 0
mov dword [esp + 0x38], 0
mov edx, dword [edx + ecx*4]
mov ecx, eax
mov dword [esp + 0x78], edx
lea edi, [edx + 1]
mov dword [esp + 0x54], edi
cmp word [esp + 0x70], ax
jae 0x498fec
mov edx, dword [esp + 0x38]
mov dword [esp + 0x4c], edi
mov dword [esp + 0x40], 0
nop word [eax + eax]
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + 4]
movzx edx, word [eax + edx*2]
movsx ecx, dx
cmp ecx, 0xfffffffe
jne 0x498f1b
mov ecx, dword [esp + 0x10]
mov eax, dword [ebp + 0x14]
mov edx, dword [esp + 0x40]
not eax
mov dword [ecx + 0x34], eax
mov eax, dword [esp + 0x1c]
mov ecx, dword [ecx]
mov dword [esp + 0x34], ecx
mov eax, dword [eax + 0x28]
mov edx, dword [eax + edx + 4]
test edx, edx
je 0x498e5e
push 0
push 0
call fcn.00478450
mov ecx, dword [esp + 0x3c]
add esp, 8
jmp 0x498e60
xor eax, eax
cmp byte [ecx + 0x51], 0
mov dword [esp + 0x20], eax
jne 0x498ec1
mov ecx, dword [esp + 0x10]
mov edx, eax
push edi
call fcn.0047cee0
add esp, 4
mov dword [esp + 0x70], eax
cmp eax, edi
je 0x498ebd
mov ecx, dword [esp + 0x10]
mov edi, dword [ecx + 8]
test edi, edi
je 0x498eb9
mov edx, dword [esp + 0x20]
mov ecx, dword [edi + 0x6c]
mov edx, dword [edx + 4]
and edx, 0x200000
neg edx
sbb edx, edx
add edx, 0x4e
cmp dword [edi + 0x70], ecx
jg 0x498ee0
push 0
push dword [esp + 0x50]
mov ecx, edi
push eax
call fcn.004605f0
add esp, 0xc
mov edi, dword [esp + 0x4c]
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x20]
test eax, eax
je 0x498ed0
mov edx, eax
call fcn.00478210
mov eax, dword [esp + 0x10]
mov dword [eax + 0x34], 0
jmp 0x498fbf
lea eax, [ecx + 1]
mov dword [edi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edi + 0x68]
mov edi, dword [esp + 0x4c]
mov byte [eax + ecx*4], dl
mov dword [eax + ecx*4 + 8], edi
lea eax, [eax + ecx*4]
xor ecx, ecx
mov dword [eax + 0xc], 0
mov word [eax + 2], cx
mov ecx, dword [esp + 0x70]
mov dword [eax + 4], ecx
mov dword [eax + 0x10], 0
mov byte [eax + 1], 0
jmp 0x498ebd
cmp ecx, 0xffffffff
je 0x498f72
mov eax, dword [esp + 0x14]
movsx eax, word [eax + 0x28]
cmp ecx, eax
je 0x498f72
mov ecx, dword [esp + 0x14]
call fcn.00486a10
mov edx, dword [ebp + 0x14]
mov ecx, dword [esi + 0x6c]
inc edx
cwde
add edx, eax
cmp dword [esi + 0x70], ecx
jg 0x498f59
push 0
push edi
push edx
mov edx, 0x4e
mov ecx, esi
call fcn.004605f0
add esp, 0xc
jmp 0x498fbf
mov edi, dword [esp + 0x4c]
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4], 0x4e
jmp 0x498fa7
mov ecx, dword [esi + 0x6c]
cmp dword [esi + 0x70], ecx
jg 0x498f91
push 0
push edi
push dword [ebp + 0x14]
mov edx, 0x4f
mov ecx, esi
call fcn.004605f0
add esp, 0xc
jmp 0x498fbf
mov edx, dword [ebp + 0x14]
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4], 0x4f
mov dword [eax + ecx*4 + 0x10], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 8], edi
mov dword [eax + ecx*4 + 4], edx
mov eax, dword [esp + 0x1c]
inc edi
mov edx, dword [esp + 0x38]
add dword [esp + 0x40], 0x14
inc edx
mov dword [esp + 0x38], edx
movzx ecx, word [eax + 0x34]
mov dword [esp + 0x4c], edi
cmp edx, ecx
jl 0x498e10
mov eax, dword [esp + 0x18]
mov edx, dword [ebp + 8]
mov edx, dword [edx + eax*4]
movzx edi, cx
mov ecx, dword [esi + 0x6c]
cmp dword [esi + 0x70], ecx
jg 0x49900e
push edx
push edi
push dword [esp + 0x5c]
mov edx, 0x5b
mov ecx, esi
call fcn.004605f0
add esp, 0xc
jmp 0x49903d
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov esi, dword [esp + 0x54]
mov dword [eax + ecx*4 + 4], esi
mov esi, dword [esp + 0x58]
mov dword [eax + ecx*4], 0x5b
mov dword [eax + ecx*4 + 8], edi
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
cmp dword [ebp + 0x18], 0
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x44]
je 0x4990db
cmp edx, ecx
jne 0x4990db
cmp byte [ebp + 0x1c], 0
jne 0x4990db
mov ecx, dword [esi + 0xc]
mov edx, dword [esp + 0x64]
not edx
mov eax, dword [ecx + 0x3c]
add eax, dword [ecx + 0x38]
jns 0x4990d0
push edx
mov edx, esi
call fcn.00460e00
add esp, 4
mov edi, dword [esp + 0x14]
mov edx, dword [ebp + 8]
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + 0x14]
inc ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], ecx
test eax, eax
jne 0x498be2
mov edx, dword [esp + 0xac]
test edx, edx
je 0x499dab
mov ecx, dword [esi + 0x6c]
cmp dword [esi + 0x70], ecx
jg 0x499d4b
push 0
push edx
push 0
mov edx, 0xb
mov ecx, esi
call fcn.004605f0
add esp, 0xc
jmp 0x499d7e
mov ecx, dword [ecx + 0x40]
mov eax, dword [esi + 0x6c]
mov dword [ecx + edx*4], eax
jmp 0x499079
movzx eax, byte [ecx + 0x36]
test eax, eax
je 0x49905d
cmp byte [ebp + 0x20], 0xb
je 0x4990f3
movzx eax, byte [ebp + 0x20]
jmp 0x4990fe
cmp eax, 0xb
mov edi, 2
cmove eax, edi
mov dword [esp + 0x20], eax
cmp dword [esp + 0x9c], ecx
jne 0x499121
mov edi, dword [ebp + 0x30]
xor eax, eax
cmp dword [edi + 8], eax
setne al
lea eax, [eax*2 + 4]
mov dword [esp + 0x20], eax
cmp dword [esp + 0x18], 0
jne 0x499207
cmp dword [ecx + 0x14], 0
jne 0x499207
cmp edx, ecx
jne 0x499207
cmp eax, 5
jne 0x499207
mov eax, dword [esp + 0x98]
mov eax, dword [eax + 0x20]
and eax, 0x2000
mov dword [esp + 0x70], eax
je 0x4991a1
mov ecx, dword [esp + 0x10]
xor edx, edx
xor edi, edi
mov eax, dword [ecx]
mov eax, dword [eax + 0x20]
and eax, 0x40000
or eax, edx
je 0x49917d
mov edx, dword [esp + 0x14]
call fcn.004ac490
mov edx, eax
mov ecx, edx
test edx, edx
je 0x499196
cmp byte [ecx + 8], 0x7e
jne 0x49918f
movzx eax, byte [ecx + 9]
or edi, eax
mov ecx, dword [ecx + 0x20]
test ecx, ecx
jne 0x499183
xor eax, eax
test edi, edi
cmovne eax, edx
test eax, eax
jne 0x499207
mov eax, dword [esp + 0x98]
mov edi, dword [esp + 0x14]
mov eax, dword [eax + 0x20]
and eax, 0x4000
mov dword [esp + 0x70], eax
je 0x4991d8
cmp dword [edi + 0x10], 0
jne 0x499207
mov ecx, dword [edi + 0x48]
mov edx, dword [edi]
add ecx, 0x38
push 0
call fcn.0043ff10
add esp, 4
cmp dword [eax + 8], 0
jne 0x499207
mov ecx, dword [esi + 0xc]
mov edx, dword [esp + 0x64]
not edx
mov eax, dword [ecx + 0x3c]
add eax, dword [ecx + 0x38]
jns 0x4991f9
push edx
mov edx, esi
call fcn.00460e00
add esp, 4
jmp 0x49907d
mov ecx, dword [ecx + 0x40]
mov eax, dword [esi + 0x6c]
mov dword [ecx + edx*4], eax
jmp 0x49907d
mov eax, dword [esp + 0x1c]
mov edx, dword [esi + 0x6c]
mov dword [esp + 0x34], edx
movzx edi, word [eax + 0x32]
mov dword [esp + 0x70], edi
cmp dword [esi + 0x70], edx
jg 0x499246
push dword [esp + 0x54]
mov eax, dword [esp + 0x1c]
mov edx, 0x1c
push dword [esp + 0x68]
add eax, dword [ebp + 0x10]
mov ecx, esi
push eax
call fcn.004605f0
mov edx, eax
add esp, 0xc
mov dword [esp + 0x34], edx
jmp 0x499288
mov edi, dword [esp + 0x70]
lea eax, [edx + 1]
lea ecx, [edx + edx*4]
mov dword [esi + 0x6c], eax
mov eax, dword [esi + 0x68]
mov edx, dword [esp + 0x18]
add edx, dword [ebp + 0x10]
mov esi, dword [esp + 0x58]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x64]
mov dword [eax + ecx*4 + 8], edx
mov edx, dword [esp + 0x54]
mov dword [eax + ecx*4 + 0xc], edx
mov edx, dword [esp + 0x34]
mov dword [eax + ecx*4], 0x1c
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esi]
cmp byte [eax + 0x51], 0
jne 0x49929f
mov eax, dword [esi + 0x68]
lea ecx, [edx + edx*4]
mov byte [eax + ecx*4 + 1], 0xfd
mov dword [eax + ecx*4 + 0x10], edi
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x44]
cmp edx, ecx
jne 0x4992b5
mov edi, dword [esp + 0x54]
mov dword [esp + 0x4c], edi
jmp 0x499328
mov eax, dword [esp + 0x90]
mov edx, dword [esp + 0x10]
cmp eax, 1
jne 0x4992ed
mov al, byte [edx + 0x13]
test al, al
jne 0x4992d8
inc dword [edx + 0x2c]
mov edi, dword [edx + 0x2c]
mov dword [esp + 0x4c], edi
jmp 0x499324
dec al
mov byte [edx + 0x13], al
movzx eax, al
mov edi, dword [edx + eax*4 + 0x94]
mov dword [esp + 0x4c], edi
jmp 0x499324
mov ecx, dword [edx + 0x1c]
mov edi, dword [edx + 0x20]
mov dword [esp + 0x4c], edi
cmp eax, ecx
jg 0x49930c
add eax, edi
sub ecx, dword [esp + 0x90]
mov dword [edx + 0x20], eax
mov dword [edx + 0x1c], ecx
jmp 0x499320
mov eax, dword [edx + 0x2c]
lea edi, [eax + 1]
add eax, dword [esp + 0x90]
mov dword [esp + 0x4c], edi
mov dword [edx + 0x2c], eax
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x1c]
cmp dword [ebp + 0x18], 0
jne 0x499339
cmp dword [esp + 0x20], 5
jne 0x49971b
mov eax, dword [esp + 0x14]
test byte [eax + 0x24], 0x80
jne 0x499420
mov ecx, dword [esi + 0x6c]
cmp dword [esi + 0x70], ecx
jg 0x49936b
mov eax, dword [esp + 0x18]
mov edx, 0x86
add eax, dword [ebp + 0x10]
mov ecx, esi
push 0
push edi
push eax
call fcn.004605f0
add esp, 0xc
jmp 0x4993a5
mov edx, dword [esp + 0x18]
lea eax, [ecx + 1]
add edx, dword [ebp + 0x10]
lea ecx, [ecx + ecx*4]
mov edi, dword [esp + 0x4c]
mov dword [esi + 0x6c], eax
mov eax, dword [esi + 0x68]
mov esi, dword [esp + 0x58]
mov dword [eax + ecx*4], 0x86
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], edi
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov edx, dword [ebp + 0x18]
test edx, edx
je 0x49971e
mov ecx, dword [esi + 0x6c]
cmp dword [esi + 0x70], ecx
jg 0x4993d2
push edx
push dword [esp + 0x68]
mov edx, 0x35
mov ecx, esi
push edi
call fcn.004605f0
mov edx, dword [ebp + 0x18]
add esp, 0xc
jmp 0x499400
mov edx, dword [esp + 0x64]
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4 + 8], edx
mov edx, dword [ebp + 0x18]
mov dword [eax + ecx*4], 0x35
mov dword [eax + ecx*4 + 4], edi
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esi + 0x6c]
test eax, eax
jle 0x49971e
lea ecx, [eax + eax*4]
mov edi, 0x90
mov eax, dword [esi + 0x68]
mov word [eax + ecx*4 - 0x12], di
jmp 0x49971e
cmp edx, ecx
je 0x499505
xor edi, edi
xor eax, eax
mov dword [esp + 0x40], edi
cmp ax, word [ecx + 0x32]
jae 0x499505
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x38], eax
jmp 0x499448
mov edx, dword [esp + 0x1c]
movzx edx, word [edx + 0x34]
xor ecx, ecx
test edx, edx
je 0x499471
mov eax, dword [esp + 0x44]
mov eax, dword [eax + 4]
movzx edi, word [eax + edi*2]
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + 4]
cmp di, word [eax]
je 0x4994a2
inc ecx
add eax, 2
cmp ecx, edx
jl 0x499464
or eax, 0xffffffff
mov ecx, dword [esi + 0x6c]
movsx edx, ax
mov dword [esp + 0x70], edx
cmp dword [esi + 0x70], ecx
jg 0x4994a7
mov edi, dword [esp + 0x38]
mov ecx, esi
mov eax, dword [esp + 0x18]
add eax, dword [ebp + 0x10]
push edi
push edx
push eax
mov edx, 0x59
call fcn.004605f0
add esp, 0xc
jmp 0x4994e1
movzx eax, cx
jmp 0x499474
mov edi, dword [esp + 0x18]
lea eax, [ecx + 1]
add edi, dword [ebp + 0x10]
lea ecx, [ecx + ecx*4]
mov edx, dword [esp + 0x70]
mov dword [esi + 0x6c], eax
mov eax, dword [esi + 0x68]
mov esi, dword [esp + 0x58]
mov dword [eax + ecx*4 + 4], edi
mov edi, dword [esp + 0x38]
mov dword [eax + ecx*4], 0x59
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], edi
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esp + 0x44]
inc edi
mov ecx, dword [esp + 0x40]
inc ecx
mov dword [esp + 0x38], edi
mov dword [esp + 0x40], ecx
mov edi, ecx
movzx eax, word [eax + 0x32]
cmp ecx, eax
jl 0x499444
mov ecx, dword [esp + 0x44]
mov edx, dword [ebp + 0x18]
test edx, edx
je 0x49971e
mov eax, dword [esp + 0x1c]
movzx ecx, word [ecx + 0x32]
mov edx, dword [esi + 0x6c]
mov edi, dword [esp + 0x4c]
add edx, ecx
mov eax, dword [eax + 0x38]
and al, 3
mov dword [esp + 0x40], 0x34
cmp al, 2
cmove edi, dword [esp + 0x54]
mov dword [esp + 0x8c], edi
xor edi, edi
mov dword [esp + 0x38], edi
test ecx, ecx
je 0x49971b
nop word [eax + eax]
mov eax, dword [esp + 0x44]
mov dword [esp + 0x3c], edx
mov eax, dword [eax + 0x20]
mov edx, dword [eax + edi*4]
mov eax, dword [esp + 0x10]
mov dword [esp + 0x94], edx
mov ecx, dword [eax]
mov al, byte [ecx + 0x4e]
mov byte [esp + 0x63], al
mov al, byte [ecx + 0xa5]
mov byte [esp + 0x87], al
movzx eax, al
push eax
push edx
mov dl, byte [esp + 0x6b]
call fcn.0048d380
add esp, 8
mov edi, eax
cmp byte [esp + 0x87], 0
mov dword [esp + 0x70], edi
jne 0x4995c8
test edi, edi
je 0x4995aa
cmp dword [edi + 0xc], 0
jne 0x4995c8
push dword [esp + 0x94]
mov dl, byte [esp + 0x67]
mov ecx, dword [esp + 0x14]
push edi
call fcn.0048d460
add esp, 8
mov dword [esp + 0x70], eax
mov edi, eax
mov esi, dword [esp + 0x44]
mov ecx, dword [esp + 0x38]
mov eax, dword [esi + 4]
movzx edx, word [eax + ecx*2]
movzx eax, word [esi + 0x32]
mov esi, dword [esp + 0x40]
dec eax
cmp ecx, eax
mov dword [esp + 0x40], esi
mov ecx, esi
mov esi, 0x35
cmove ecx, esi
cmp dword [esp + 0x38], eax
mov dword [esp + 0x40], ecx
mov ecx, dword [esp + 0x64]
cmovne ecx, dword [esp + 0x3c]
mov dword [esp + 0x3c], ecx
mov ecx, dword [esp + 0x14]
call fcn.00486a10
mov ecx, dword [ebp + 0x18]
mov esi, dword [esp + 0x58]
inc ecx
cwde
add eax, ecx
mov ecx, dword [esp + 0x38]
add ecx, dword [esp + 0x8c]
mov edx, dword [esi + 0x6c]
mov dword [esp + 0x94], eax
cmp dword [esi + 0x70], edx
jg 0x49964c
mov edx, dword [esp + 0x40]
push ecx
mov ecx, dword [esp + 0x40]
push ecx
push eax
mov ecx, esi
call fcn.004605f0
add esp, 0xc
mov edx, eax
jmp 0x49969b
mov edi, dword [esp + 0x70]
lea eax, [edx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [edx + edx*4]
mov eax, dword [esi + 0x68]
mov esi, dword [esp + 0x58]
mov dword [eax + ecx*4 + 0x10], 0
mov byte [eax + ecx*4 + 1], 0
lea eax, [eax + ecx*4]
mov ecx, dword [esp + 0x40]
mov byte [eax], cl
xor ecx, ecx
mov word [eax + 2], cx
mov ecx, dword [esp + 0x94]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x3c]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x38]
add ecx, dword [esp + 0x8c]
mov dword [eax + 0xc], ecx
mov ecx, dword [esi]
cmp byte [ecx + 0x51], 0
je 0x4996b3
push edi
mov edx, 0xfffffffe
call fcn.00461360
add esp, 4
jmp 0x4996e7
test edx, edx
jns 0x4996bb
mov edx, dword [esi + 0x6c]
dec edx
mov eax, dword [esi + 0x68]
lea ecx, [edx + edx*4]
cmp byte [eax + ecx*4 + 1], 0
lea eax, [eax + ecx*4]
je 0x4996dc
push 0xfffffffffffffffe
push edi
mov edx, eax
mov ecx, esi
call fcn.00461570
add esp, 8
jmp 0x4996e7
test edi, edi
je 0x4996e7
mov dword [eax + 0x10], edi
mov byte [eax + 1], 0xfe
mov eax, dword [esi + 0x6c]
test eax, eax
jle 0x4996fe
lea ecx, [eax + eax*4]
mov edx, 0x90
mov eax, dword [esi + 0x68]
mov word [eax + ecx*4 - 0x12], dx
mov eax, dword [esp + 0x44]
mov edi, dword [esp + 0x38]
mov edx, dword [esp + 0x3c]
inc edi
mov dword [esp + 0x38], edi
movzx eax, word [eax + 0x32]
cmp edi, eax
jl 0x499550
mov edx, dword [ebp + 0x18]
mov edi, dword [esp + 0x20]
lea eax, [edi - 1]
cmp eax, 5
ja case.0x49972e.5
jmp dword [eax*4 + 0x49a194]
push dword [esp + 0x1c]
mov edx, edi
mov edi, dword [esp + 0x14]
mov ecx, edi
call fcn.0048c5a0
add esp, 4
jmp 0x499c31
mov eax, dword [esp + 0x18]
add eax, dword [ebp + 0x10]
mov edi, dword [esp + 0x10]
mov ecx, edi
mov edx, dword [ebp + 0x30]
push eax
push dword [esp + 0x20]
push dword [esp + 0x1c]
call fcn.004b1350
add esp, 0xc
jmp 0x499775
mov edi, dword [esp + 0x10]
mov ecx, dword [esi + 0x6c]
cmp dword [esi + 0x70], ecx
jg 0x499798
push 0
push dword [ebp + 0x24]
mov edx, 0xb
mov ecx, esi
push 0
call fcn.004605f0
add esp, 0xc
jmp 0x499c31
mov edx, dword [ebp + 0x24]
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4], 0xb
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
jmp 0x499c31
mov edi, dword [esi + 0x6c]
sub edi, dword [esp + 0x34]
cmp dword [esp + 0x68], 0
mov dword [esp + 0x3c], edi
je 0x4997f5
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx + 0x74]
test eax, eax
cmovne ecx, eax
inc dword [esp + 0x6c]
mov byte [ecx + 0x14], 1
cmp dword [esp + 0x48], 0
je 0x499852
test edx, edx
je 0x499852
mov ecx, dword [esi + 0x6c]
cmp dword [esi + 0x70], ecx
jg 0x499820
push 0
push 0
push dword [ebp + 0xc]
mov edx, 0x9f
mov ecx, esi
call fcn.004605f0
add esp, 0xc
jmp 0x499852
mov edx, dword [ebp + 0xc]
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4], 0x9f
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov edx, dword [ebp + 0x10]
mov eax, dword [esp + 0x18]
add eax, edx
mov ecx, dword [esp + 0x10]
push eax
mov eax, dword [esp + 0x48]
cmp dword [esp + 0x20], eax
sete al
movzx eax, al
push eax
push 5
push 0
push dword [esp + 0xa0]
push dword [esp + 0x60]
push edx
push dword [ebp + 0xc]
mov edx, dword [esp + 0x34]
push dword [esp + 0x68]
call fcn.0048ea00
add esp, 0x24
cmp dword [esp + 0x48], 0
je 0x4998f1
cmp dword [ebp + 0x18], 0
je 0x4998f1
mov ecx, dword [esi + 0x6c]
cmp dword [esi + 0x70], ecx
jg 0x4998bf
push 0
push 0
push dword [ebp + 0xc]
mov edx, 0xa0
mov ecx, esi
call fcn.004605f0
add esp, 0xc
jmp 0x4998f1
mov edx, dword [ebp + 0xc]
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4], 0xa0
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov edx, dword [esp + 0x68]
test edx, edx
je 0x499c22
mov ecx, dword [esi + 0x6c]
cmp dword [esi + 0x70], ecx
jg 0x49991b
push 0
push 1
push edx
mov edx, 0x52
mov ecx, esi
call fcn.004605f0
add esp, 0xc
jmp 0x49994e
mov edi, dword [esp + 0x3c]
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4], 0x52
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], 1
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov edx, dword [esi + 0x6c]
mov dword [esp + 0x8c], edx
cmp dword [esi + 0x70], edx
jg 0x49997b
push 0
push 0
push 0
mov edx, 0xb
mov ecx, esi
call fcn.004605f0
add esp, 0xc
mov dword [esp + 0x8c], eax
jmp 0x4999ae
lea eax, [edx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [edx + edx*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4], 0xb
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [esi + 0xc]
mov edx, dword [esp + 0x5c]
not edx
mov eax, dword [ecx + 0x3c]
add eax, dword [ecx + 0x38]
jns 0x4999cc
push edx
mov edx, esi
call fcn.00460e00
add esp, 4
jmp 0x4999d5
mov ecx, dword [ecx + 0x40]
mov eax, dword [esi + 0x6c]
mov dword [ecx + edx*4], eax
mov eax, dword [esp + 0x10]
dec dword [eax + 0x38]
mov edx, dword [eax + 0x38]
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x5c], edx
cmp dword [eax + 0x24], 0
je 0x499a48
mov ecx, dword [esi + 0x6c]
cmp dword [esi + 0x70], ecx
jg 0x499a15
push 0
push edx
mov edx, dword [esp + 0x80]
mov ecx, esi
push edx
mov edx, 0x32
call fcn.004605f0
mov edx, dword [esp + 0x68]
add esp, 0xc
jmp 0x499a48
mov edx, dword [esp + 0x78]
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x5c]
mov dword [eax + ecx*4], 0x32
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
test edi, edi
jle 0x499bd8
mov eax, dword [esp + 0x34]
mov ecx, eax
test eax, eax
jns 0x499a5e
mov ecx, dword [esi + 0x6c]
dec ecx
mov eax, dword [esi]
cmp byte [eax + 0x51], 0
je 0x499a6d
mov eax, 0x538670
jmp 0x499a76
mov eax, dword [esi + 0x68]
lea ecx, [ecx + ecx*4]
lea eax, [eax + ecx*4]
movups xmm0, xmmword [eax]
mov eax, dword [eax + 0x10]
mov dword [esp + 0x20], eax
movd eax, xmm0
movaps xmmword [esp + 0xb0], xmm0
cmp al, 0x86
je 0x499bbf
mov edi, dword [esi + 0x6c]
movzx ecx, al
mov dword [esp + 0x78], ecx
test byte [ecx + 0x51da80], 1
mov ecx, dword [esp + 0xb8]
cmovne ecx, edx
shr eax, 8
movsx edx, al
mov dword [esp + 0x94], ecx
mov dword [esp + 0x70], edx
cmp dword [esi + 0x70], edi
jg 0x499aea
push dword [esp + 0xbc]
mov edx, dword [esp + 0x7c]
push ecx
push dword [esp + 0xbc]
mov ecx, esi
call fcn.004605f0
mov edx, dword [esp + 0x7c]
add esp, 0xc
mov edi, eax
jmp 0x499b30
lea eax, [edi + 1]
mov dword [esi + 0x6c], eax
lea ecx, [edi + edi*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4 + 0x10], 0
mov byte [eax + ecx*4 + 1], 0
lea ecx, [eax + ecx*4]
mov eax, dword [esp + 0x78]
mov byte [ecx], al
xor eax, eax
mov word [ecx + 2], ax
mov eax, dword [esp + 0xb4]
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x94]
mov dword [ecx + 8], eax
mov eax, dword [esp + 0xbc]
mov dword [ecx + 0xc], eax
mov ecx, dword [esi]
cmp byte [ecx + 0x51], 0
je 0x499b4c
cmp edx, 0xfffffff4
je 0x499ba5
mov eax, dword [esp + 0x20]
push eax
call fcn.00461360
add esp, 4
jmp 0x499ba5
test edi, edi
jns 0x499b54
mov edi, dword [esi + 0x6c]
dec edi
mov eax, dword [esi + 0x68]
lea ecx, [edi + edi*4]
lea edx, [eax + ecx*4]
mov eax, dword [esp + 0x70]
test eax, eax
jns 0x499b95
cmp byte [edx + 1], 0
jne 0x499b95
cmp eax, 0xfffffffd
jne 0x499b7d
mov eax, dword [esp + 0x20]
mov dword [edx + 0x10], eax
mov byte [edx + 1], 0xfd
jmp 0x499ba5
mov ecx, dword [esp + 0x20]
test ecx, ecx
je 0x499ba5
mov dword [edx + 0x10], ecx
mov byte [edx + 1], al
cmp eax, 0xfffffff4
jne 0x499ba5
inc dword [ecx + 0xc]
jmp 0x499ba5
push eax
mov eax, dword [esp + 0x24]
mov ecx, esi
push eax
call fcn.00461570
add esp, 8
mov eax, dword [esi + 0x6c]
test eax, eax
jle 0x499bbf
mov ecx, dword [esi + 0x68]
lea edx, [eax + eax*4]
mov ax, word [esp + 0xb2]
mov word [ecx + edx*4 - 0x12], ax
mov eax, dword [esp + 0x3c]
inc dword [esp + 0x34]
dec eax
mov edx, dword [esp + 0x5c]
mov dword [esp + 0x3c], eax
test eax, eax
jg 0x499a50
push dword [esp + 0x1c]
mov edi, dword [esp + 0x14]
mov edx, 2
mov ecx, edi
call fcn.0048c5a0
mov eax, dword [esi]
add esp, 4
mov edx, dword [esi + 0x6c]
cmp byte [eax + 0x51], 0
je 0x499c04
mov eax, 0x538670
mov dword [eax + 8], edx
jmp 0x499c26
mov ecx, dword [esp + 0x8c]
lea eax, [edx - 1]
test ecx, ecx
cmovns eax, ecx
lea ecx, [eax + eax*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4 + 8], edx
lea eax, [eax + ecx*4]
jmp 0x499c26
mov edi, dword [esp + 0x10]
mov dword [esp + 0xa4], 1
mov eax, dword [esp + 0x9c]
cmp eax, dword [esp + 0x1c]
jne 0x499cce
mov edx, dword [esp + 0xa0]
mov ecx, dword [esi + 0x6c]
inc edx
cmp dword [esi + 0x70], ecx
jg 0x499c68
push 0
push edx
push 0
mov edx, 0xb
mov ecx, esi
call fcn.004605f0
add esp, 0xc
jmp 0x499c9b
mov edi, dword [esp + 0x10]
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4], 0xb
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esi]
mov edx, dword [esi + 0x6c]
cmp byte [eax + 0x51], 0
je 0x499cb0
mov eax, 0x538670
mov dword [eax + 8], edx
jmp 0x499cf5
mov ecx, dword [esp + 0xa8]
lea eax, [edx - 1]
test ecx, ecx
cmovns eax, ecx
lea ecx, [eax + eax*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4 + 8], edx
lea eax, [eax + ecx*4]
jmp 0x499cf5
mov ecx, dword [esi + 0xc]
mov edx, dword [esp + 0x64]
not edx
mov eax, dword [ecx + 0x3c]
add eax, dword [ecx + 0x38]
jns 0x499cec
push edx
mov edx, esi
call fcn.00460e00
add esp, 4
jmp 0x499cf5
mov ecx, dword [ecx + 0x40]
mov eax, dword [esi + 0x6c]
mov dword [ecx + edx*4], eax
mov ecx, dword [esp + 0x4c]
cmp ecx, dword [esp + 0x54]
je 0x499079
mov eax, dword [esp + 0x90]
cmp eax, 1
jne 0x499d37
test ecx, ecx
je 0x499079
mov al, byte [edi + 0x13]
mov edx, dword [ebp + 8]
cmp al, 8
jae 0x499d2e
movzx eax, al
mov dword [edi + eax*4 + 0x94], ecx
inc byte [edi + 0x13]
mov edi, dword [esp + 0x14]
jmp 0x499080
cmp eax, dword [edi + 0x1c]
jle 0x499079
mov dword [edi + 0x1c], eax
mov dword [edi + 0x20], ecx
jmp 0x499079
mov edi, dword [esp + 0x14]
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4], 0xb
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esi]
mov edx, dword [esi + 0x6c]
cmp byte [eax + 0x51], 0
je 0x499d90
mov eax, 0x538670
jmp 0x499da8
mov ecx, dword [esp + 0x88]
lea eax, [edx - 1]
test ecx, ecx
cmovns eax, ecx
lea ecx, [eax + eax*4]
mov eax, dword [esi + 0x68]
lea eax, [eax + ecx*4]
mov dword [eax + 8], edx
cmp dword [esp + 0x6c], 0
je 0x49a0c9
mov ecx, dword [esi + 0x6c]
cmp dword [esi + 0x70], ecx
jg 0x499dda
mov edx, dword [esp + 0x5c]
mov ecx, esi
push 0
push edx
push dword [esp + 0x70]
mov edx, 0x14
call fcn.004605f0
add esp, 0xc
jmp 0x499e0d
mov edx, dword [esp + 0x68]
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x5c]
mov dword [eax + ecx*4], 0x14
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
cmp dword [esp + 0x44], 0
jne 0x49a048
mov edx, dword [ebp + 0x18]
test edx, edx
je 0x499e8f
mov ecx, dword [esi + 0x6c]
cmp dword [esi + 0x70], ecx
jg 0x499e43
push edx
push dword [esp + 0x84]
mov edx, 0x35
mov ecx, esi
push dword [ebp + 0x14]
call fcn.004605f0
add esp, 0xc
jmp 0x499e78
mov edi, dword [ebp + 0x14]
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4 + 4], edi
mov edi, dword [esp + 0x80]
mov dword [eax + ecx*4 + 8], edi
mov edi, dword [esp + 0x14]
mov dword [eax + ecx*4], 0x35
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esi + 0x6c]
test eax, eax
jle 0x499e8f
lea ecx, [eax + eax*4]
mov edx, 0x90
mov eax, dword [esi + 0x68]
mov word [eax + ecx*4 - 0x12], dx
mov ecx, dword [esi + 0x6c]
cmp dword [esi + 0x70], ecx
jg 0x499eb5
push dword [ebp + 0x14]
mov edx, 0x20
mov ecx, esi
push dword [esp + 0x84]
push dword [ebp + 0xc]
call fcn.004605f0
add esp, 0xc
jmp 0x499ee9
mov edx, dword [ebp + 0xc]
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x80]
mov dword [eax + ecx*4 + 8], edx
mov edx, dword [ebp + 0x14]
mov dword [eax + ecx*4], 0x20
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
movzx eax, word [edi + 0x28]
test ax, ax
js 0x499f1e
cwde
lea ecx, [eax + eax*4]
mov eax, dword [edi + 4]
push dword [eax + ecx*4]
mov eax, dword [esp + 0x14]
push dword [edi]
push str._s._s
push dword [eax]
call fcn.0043d4e0
add esp, 0x10
mov dword [esp + 0x88], 0x613
jmp 0x499f3e
push dword [edi]
mov eax, dword [esp + 0x14]
push str._s.rowid
push dword [eax]
call fcn.0043d4e0
add esp, 0xc
mov dword [esp + 0x88], 0xa13
mov edx, dword [esp + 0x10]
mov dword [esp + 0x6c], eax
mov edi, dword [edx + 8]
test edi, edi
jne 0x499f6b
cmp dword [edx + 0x74], edi
jne 0x499f5e
mov eax, dword [edx]
test byte [eax + 0x4c], 8
jne 0x499f5e
mov byte [edx + 0x17], 1
mov ecx, edx
call fcn.00460280
mov edx, dword [esp + 0x10]
mov edi, eax
mov ecx, dword [edx + 0x74]
test ecx, ecx
cmovne edx, ecx
mov byte [edx + 0x15], 1
mov edx, dword [edi + 0x6c]
mov dword [esp + 0x78], edx
cmp dword [edi + 0x70], edx
jg 0x499fa1
push 0
push 2
push dword [esp + 0x90]
mov edx, 0x44
mov ecx, edi
call fcn.004605f0
add esp, 0xc
mov edx, eax
jmp 0x499fdb
lea eax, [edx + 1]
mov dword [edi + 0x6c], eax
lea ecx, [edx + edx*4]
mov eax, dword [edi + 0x68]
mov edx, dword [esp + 0x88]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x78]
mov dword [eax + ecx*4], 0x44
mov dword [eax + ecx*4 + 8], 2
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [edi]
cmp byte [ecx + 0x51], 0
je 0x499ff6
push dword [esp + 0x6c]
mov edx, 0xfffffff9
call fcn.00461360
add esp, 4
jmp 0x49a02f
test edx, edx
jns 0x499ffe
mov edx, dword [edi + 0x6c]
dec edx
mov eax, dword [edi + 0x68]
lea ecx, [edx + edx*4]
cmp byte [eax + ecx*4 + 1], 0
lea edx, [eax + ecx*4]
jne 0x49a01f
mov eax, dword [esp + 0x6c]
test eax, eax
je 0x49a02f
mov dword [edx + 0x10], eax
mov byte [edx + 1], 0xf9
jmp 0x49a02f
push 0xfffffffffffffff9
push dword [esp + 0x70]
mov ecx, edi
call fcn.00461570
add esp, 8
mov eax, dword [edi + 0x6c]
test eax, eax
jle 0x49a0a2
lea ecx, [eax + eax*4]
mov edx, 2
mov eax, dword [edi + 0x68]
mov word [eax + ecx*4 - 0x12], dx
jmp 0x49a0a2
mov ecx, dword [esi + 0x6c]
cmp dword [esi + 0x70], ecx
jg 0x49a06c
push 0
push dword [esp + 0x84]
mov edx, 0xb
mov ecx, esi
push 0
call fcn.004605f0
add esp, 0xc
jmp 0x49a0a2
mov edx, dword [esp + 0x80]
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4], 0xb
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [esi + 0xc]
mov edx, dword [esp + 0x5c]
not edx
mov eax, dword [ecx + 0x3c]
add eax, dword [ecx + 0x38]
jns 0x49a0c0
push edx
mov edx, esi
call fcn.00460e00
add esp, 4
jmp 0x49a0c9
mov ecx, dword [ecx + 0x40]
mov eax, dword [esi + 0x6c]
mov dword [ecx + edx*4], eax
mov eax, dword [esp + 0x14]
test byte [eax + 0x24], 0x80
jne 0x49a153
mov ecx, dword [esp + 0x18]
mov edx, dword [ebp + 8]
mov edi, dword [edx + ecx*4]
movsx edx, word [eax + 0x2c]
mov eax, dword [ebp + 0x14]
mov ecx, dword [esi + 0x6c]
inc eax
mov dword [esp + 0x78], edi
cmp dword [esi + 0x70], ecx
jg 0x49a109
push edi
push edx
push eax
mov edx, 0x5b
mov ecx, esi
call fcn.004605f0
add esp, 0xc
jmp 0x49a13c
mov edi, dword [ebp + 0x14]
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
inc edi
mov esi, dword [esp + 0x58]
mov dword [eax + ecx*4 + 4], edi
mov edi, dword [esp + 0x78]
mov dword [eax + ecx*4], 0x5b
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], edi
mov dword [eax + ecx*4 + 0x10], 0
cmp byte [esp + 0x53], 0
jne 0x49a153
mov edx, dword [esp + 0x14]
mov ecx, esi
push 0
call fcn.004963f0
add esp, 4
mov eax, dword [ebp + 0x28]
mov ecx, dword [esp + 0xa4]
pop edi
pop esi
mov dword [eax], ecx
mov esp, ebp
pop ebp
ret