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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x128
xor eax, eax
mov dword [esp + 0x58], edx
push esi
mov esi, ecx
mov dword [esp + 0xb8], 0
xorps xmm0, xmm0
mov dword [esp + 0xc], esi
push edi
mov edi, dword [ebp + 0xc]
mov edx, dword [esi]
mov dword [esp + 0xa0], 0
mov dword [esp + 0x6c], 0
mov dword [esp + 0xa8], 0
mov dword [esp + 0x68], eax
mov dword [esp + 0x94], eax
mov dword [esp + 0x90], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0xc0], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0xa4], eax
mov dword [esp + 0xac], eax
mov dword [esp + 0x8c], eax
mov dword [esp + 0x3c], eax
movlpd qword [esp + 0xc4], xmm0
mov dword [esp + 0x2c], edx
cmp dword [esi + 0x24], eax
jne 0x4e1bdd
cmp byte [edx + 0x51], al
jne 0x4e1bdd
mov edx, dword [esp + 0x60]
call fcn.004c3f00
mov edi, eax
mov dword [esp + 0x18], edi
test edi, edi
je 0x4e1b97
mov edx, dword [edi + 0x48]
mov ecx, dword [esi]
call fcn.004d3ba0
mov dword [esp + 0x64], eax
mov edx, edi
lea eax, [esp + 0xb4]
mov ecx, esi
push eax
push dword [ebp + 8]
push 0x7a
call fcn.004df6d0
add esp, 0xc
mov dword [esp + 0x40], eax
mov eax, dword [edi + 0xc]
mov edx, edi
mov ecx, esi
mov dword [esp + 0x80], eax
call fcn.004bfbb0
test eax, eax
jne 0x4e1b97
push dword [esp + 0xb4]
mov edx, edi
mov ecx, esi
call fcn.004c3f90
add esp, 4
test eax, eax
jne 0x4e1b97
mov eax, dword [esi + 0x28]
mov dword [esp + 0x14], eax
mov dword [esp + 0x88], eax
lea ecx, [eax + 1]
mov dword [esi + 0x28], ecx
test byte [edi + 0x24], 0x20
mov dword [esp + 0x84], ecx
jne 0x4e033b
mov dword [esp + 0x34], 0
jmp 0x4e034a
mov ecx, edi
call fcn.004bdba0
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x14]
mov ecx, dword [edi + 8]
xor edx, edx
mov dword [esp + 0x70], edx
test ecx, ecx
je 0x4e038f
mov edx, dword [esp + 0x84]
xor edi, edi
cmp dword [esp + 0x34], ecx
mov eax, edx
mov esi, dword [esp + 0x10]
cmovne eax, dword [esp + 0x14]
inc edx
inc edi
mov dword [esp + 0x14], eax
mov dword [esi + 0x28], edx
mov ecx, dword [ecx + 0x14]
test ecx, ecx
jne 0x4e0360
mov dword [esp + 0x70], edi
mov edi, dword [esp + 0x18]
mov edx, dword [esp + 0x70]
mov dword [esp + 0x14], eax
mov ecx, dword [ebp + 0x1c]
test ecx, ecx
je 0x4e03b5
mov edx, dword [ecx + 0x20]
mov eax, dword [ecx + 0x1c]
mov ecx, dword [esp + 0x88]
mov dword [esp + 0x84], edx
mov edx, dword [esp + 0x70]
mov dword [esp + 0x14], eax
mov dword [esi + 0x28], ecx
mov ecx, dword [esp + 0x60]
push 0
mov dword [ecx + 0x34], eax
movsx eax, word [edi + 0x2a]
mov ecx, dword [esp + 0x30]
add eax, edx
lea eax, [eax*4 + 6]
add eax, edx
push eax
call fcn.0047d040
mov ecx, eax
add esp, 8
mov dword [esp + 0x28], ecx
test ecx, ecx
je 0x4e1b97
movsx eax, word [edi + 0x2a]
lea ecx, [ecx + eax*4]
mov eax, dword [esp + 0x70]
mov dword [esp + 0x78], ecx
lea ecx, [ecx + eax*4]
inc eax
push eax
add ecx, 4
push 1
push ecx
mov dword [esp + 0x80], ecx
call fcn.00573560
mov eax, dword [esp + 0x7c]
add esp, 0xc
mov ecx, dword [esp + 0x74]
mov byte [ecx + eax + 1], 0
xor eax, eax
xor ecx, ecx
cmp ax, word [edi + 0x2a]
jge 0x4e0444
mov esi, dword [esp + 0x28]
nop dword [eax]
mov dword [esi + ecx*4], 0xffffffff
inc ecx
movsx eax, word [edi + 0x2a]
cmp ecx, eax
jl 0x4e0430
mov esi, dword [esp + 0x10]
mov ecx, dword [ebp + 0x1c]
xorps xmm0, xmm0
mov eax, dword [esp + 0x60]
mov dword [esp + 0x118], ecx
mov ecx, dword [ebp + 8]
mov dword [esp + 0x114], eax
xor al, al
movlpd qword [esp + 0x11c], xmm0
mov dword [esp + 0x124], 0
cmp dword [ecx], 0
mov dword [esp + 0x12c], 0
mov dword [esp + 0x110], esi
mov dword [esp + 0x128], 0x200
mov byte [esp + 0x50], 0
mov byte [esp + 0x1f], al
mov dword [esp + 0x44], 0
jle 0x4e0669
lea esi, [ecx + 4]
mov dword [esp + 0x30], esi
nop dword [eax]
nop word [eax + eax]
mov edx, dword [esi]
lea ecx, [esp + 0x110]
call fcn.004affd0
test eax, eax
jne 0x4e1b7f
mov edx, dword [esp + 0x18]
xor edi, edi
movsx eax, word [edx + 0x2a]
test eax, eax
jle 0x4e058a
mov eax, dword [edx + 4]
mov dword [esp + 0x58], eax
nop
mov esi, dword [esi + 4]
mov edx, dword [eax]
sub esi, edx
movzx ecx, byte [edx]
movzx eax, byte [edx + esi]
cmp ecx, eax
jne 0x4e0526
test ecx, ecx
jne 0x4e0538
mov edx, dword [esp + 0x18]
mov esi, dword [esp + 0x30]
movsx eax, word [edx + 0x28]
cmp edi, eax
jne 0x4e0559
mov eax, dword [esi]
mov byte [esp + 0x1f], 1
mov dword [esp + 0xa0], eax
jmp 0x4e057f
movzx eax, byte [eax + 0x617210]
movzx ecx, byte [ecx + 0x617210]
sub ecx, eax
jne 0x4e053b
inc edx
jmp 0x4e04f7
mov edx, dword [esp + 0x18]
inc edi
mov eax, dword [esp + 0x58]
mov esi, dword [esp + 0x30]
add eax, 0x10
mov dword [esp + 0x58], eax
movsx ecx, word [edx + 0x2a]
cmp edi, ecx
jge 0x4e058a
jmp 0x4e04f0
cmp dword [esp + 0x34], 0
je 0x4e057f
mov ecx, dword [edx + 4]
mov eax, edi
add eax, eax
test byte [ecx + eax*8 + 0xf], 1
mov ecx, 1
mov eax, dword [esp + 0x50]
movzx eax, al
cmovne eax, ecx
mov dword [esp + 0x50], eax
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x44]
mov dword [ecx + edi*4], eax
movsx eax, word [edx + 0x2a]
cmp edi, eax
jl 0x4e05f0
cmp dword [esp + 0x34], 0
jne 0x4e0682
mov esi, dword [esi + 4]
mov edx, str._ROWID_
mov ecx, esi
call fcn.00480400
test eax, eax
je 0x4e05d4
mov edx, str.ROWID
mov ecx, esi
call fcn.00480400
test eax, eax
je 0x4e05d4
mov edx, 0x611c2c
mov ecx, esi
call fcn.00480400
test eax, eax
jne 0x4e0682
mov esi, dword [esp + 0x30]
or edi, 0xffffffff
mov byte [esp + 0x1f], 1
mov edx, str.ROWID
mov eax, dword [esi]
mov dword [esp + 0xa0], eax
jmp 0x4e0605
test edi, edi
jns 0x4e05fb
mov edx, str.ROWID
jmp 0x4e0605
mov eax, dword [edx + 4]
mov ecx, edi
add ecx, ecx
mov edx, dword [eax + ecx*8]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x64]
add ecx, ecx
mov eax, dword [eax + 0x10]
push dword [eax + ecx*8]
mov ecx, dword [esp + 0x14]
push edx
mov edx, dword [esp + 0x20]
push dword [edx]
mov edx, 0x17
call fcn.004bc540
add esp, 0xc
cmp eax, 1
je 0x4e1b7f
cmp eax, 2
jne 0x4e0646
mov eax, dword [esp + 0x28]
mov dword [eax + edi*4], 0xffffffff
mov edi, dword [esp + 0x44]
add esi, 0x18
mov ecx, dword [ebp + 8]
inc edi
mov dword [esp + 0x44], edi
mov dword [esp + 0x30], esi
cmp edi, dword [ecx]
jl 0x4e04c0
mov edi, dword [esp + 0x18]
mov al, byte [esp + 0x1f]
mov dl, byte [esp + 0x50]
add dl, al
cmp dword [edi + 0x38], 0
mov byte [esp + 0x30], dl
je 0x4e06ab
mov eax, 0xffffffff
or ecx, eax
jmp 0x4e06c5
mov eax, dword [esp + 0x44]
mov ecx, dword [ebp + 8]
mov esi, dword [esp + 0x10]
lea eax, [eax + eax*2]
push dword [ecx + eax*8 + 8]
push str.no_such_column:__s
push esi
call fcn.00480240
add esp, 0xc
mov byte [esi + 0x11], 1
jmp 0x4e1b7f
xorps xmm0, xmm0
movlpd qword [esp + 0x98], xmm0
mov ecx, dword [esp + 0x9c]
mov eax, dword [esp + 0x98]
mov esi, dword [esp + 0x60]
mov dword [esi + 0x40], eax
mov eax, esi
mov dword [eax + 0x44], ecx
mov ecx, dword [esp + 0x10]
movzx eax, dl
mov edx, edi
push eax
push dword [esp + 0x2c]
mov dword [esp + 0xc0], eax
call fcn.004ca810
add esp, 8
mov ecx, eax
cmp dword [ebp + 0x10], 5
mov edx, 1
mov eax, dword [esp + 0x5c]
cmove eax, edx
mov dword [esp + 0x54], ecx
mov edx, dword [esp + 0x18]
xor edi, edi
mov dword [esp + 0x5c], eax
mov dword [esp + 0x24], edi
mov esi, dword [edx + 8]
test esi, esi
je 0x4e088e
nop dword [eax]
cmp byte [esp + 0x30], 0
jne 0x4e0a39
cmp ecx, 1
jg 0x4e0a39
cmp esi, dword [esp + 0x34]
je 0x4e0a39
mov edx, dword [esi + 0x24]
test edx, edx
je 0x4e079e
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0xd0]
xorps xmm0, xmm0
mov dword [esp + 0xe8], 0
movaps xmmword [esp + 0xd0], xmm0
movq qword [esp + 0xe0], xmm0
mov dword [esp + 0xd4], 0x4ccc80
mov dword [esp + 0xe8], eax
call fcn.004adb70
cmp byte [esp + 0x1f], 0
mov al, byte [esp + 0xe4]
jne 0x4e0796
and al, 0xfd
test al, al
jne 0x4e0a39
xor ecx, ecx
xor eax, eax
xor edi, edi
mov dword [esp + 0x98], ecx
cmp ax, word [esi + 0x32]
jae 0x4e0866
mov dword [esp + 0x58], ecx
nop dword [eax]
mov eax, dword [esi + 4]
movzx eax, word [eax + edi*2]
test ax, ax
js 0x4e07db
mov edx, dword [esp + 0x28]
cwde
mov eax, dword [edx + eax*4]
not eax
shr eax, 0x1f
jmp 0x4e0843
mov eax, dword [esi + 0x28]
xorps xmm0, xmm0
movaps xmmword [esp + 0xf0], xmm0
mov dword [esp + 0x108], 0
movq qword [esp + 0x100], xmm0
mov edx, dword [eax + ecx + 4]
mov eax, dword [esp + 0x28]
mov dword [esp + 0xf4], 0x4ccc80
mov dword [esp + 0x108], eax
test edx, edx
je 0x4e0827
lea ecx, [esp + 0xf0]
call fcn.004adb70
cmp byte [esp + 0x1f], 0
mov cl, byte [esp + 0x104]
jne 0x4e0838
and cl, 0xfd
xor eax, eax
test cl, cl
mov ecx, dword [esp + 0x58]
setne al
test eax, eax
jne 0x4e0a0b
movzx eax, word [esi + 0x32]
inc edi
add ecx, 0x18
mov dword [esp + 0x58], ecx
cmp edi, eax
jl 0x4e07c0
mov ecx, dword [esp + 0x98]
mov edi, dword [esp + 0x24]
mov eax, dword [esp + 0x74]
mov byte [edi + eax + 1], 0
mov eax, dword [esp + 0x78]
mov dword [eax + edi*4], ecx
inc edi
mov esi, dword [esi + 0x14]
mov ecx, dword [esp + 0x54]
mov dword [esp + 0x24], edi
test esi, esi
jne 0x4e0720
mov esi, dword [esp + 0x10]
mov ecx, dword [esp + 0x78]
inc dword [esi + 0x2c]
mov eax, dword [esi + 0x2c]
mov dword [ecx + edi*4], eax
cmp dword [esp + 0x5c], 0
je 0x4e08ba
mov eax, dword [esp + 0x70]
inc eax
push eax
push 1
push dword [esp + 0x7c]
call fcn.00573560
add esp, 0xc
mov edi, dword [esi + 8]
mov dword [esp + 0xb0], edi
test edi, edi
jne 0x4e08f1
cmp dword [esi + 0x74], edi
jne 0x4e08d9
mov eax, dword [esi]
test byte [eax + 0x4c], 8
jne 0x4e08d9
mov byte [esi + 0x17], 1
mov ecx, esi
call fcn.0049bd00
mov edi, eax
mov dword [esp + 0xb0], eax
test edi, edi
je 0x4e1b7f
cmp byte [esi + 0x12], 0
jne 0x4e08fe
or dword [edi + 0x98], 0x20
cmp dword [esp + 0x40], 0
jne 0x4e0911
cmp dword [esp + 0x54], 0
mov byte [esp + 0x4b], 0
je 0x4e0916
mov byte [esp + 0x4b], 1
mov eax, dword [esi + 0x74]
test eax, eax
mov ecx, dword [esp + 0x64]
cmovne esi, eax
mov eax, 1
shl eax, cl
mov edx, dword [esi + 0x54]
test edx, eax
jne 0x4e0946
bts edx, ecx
mov dword [esi + 0x54], edx
cmp ecx, 1
jne 0x4e0946
mov ecx, esi
call fcn.004c2960
mov ecx, dword [esp + 0x64]
mov eax, dword [esi + 0x50]
mov edx, dword [esp + 0x18]
bts eax, ecx
mov dword [esi + 0x50], eax
mov al, byte [esp + 0x4b]
or byte [esi + 0x14], al
cmp dword [edx + 0x38], 0
mov esi, dword [esp + 0x10]
jne 0x4e09e3
mov ecx, dword [esp + 0x78]
mov eax, dword [esp + 0x24]
mov eax, dword [ecx + eax*4]
mov ecx, dword [esi + 0x2c]
inc ecx
mov dword [esp + 0x8c], eax
cmp byte [esp + 0x50], 0
mov dword [esp + 0x38], ecx
mov dword [esi + 0x2c], ecx
mov dword [esp + 0x20], ecx
jne 0x4e099b
cmp dword [esp + 0x40], 0
jne 0x4e099b
mov eax, dword [esp + 0x54]
test eax, eax
je 0x4e09b2
lea eax, [ecx + 1]
mov dword [esp + 0xac], eax
movsx eax, word [edx + 0x2a]
add ecx, eax
mov eax, dword [esp + 0x54]
mov dword [esi + 0x2c], ecx
cmp byte [esp + 0x30], 0
jne 0x4e09c4
cmp dword [esp + 0x40], 0
jne 0x4e09c4
test eax, eax
je 0x4e09d0
lea eax, [ecx + 1]
mov dword [esp + 0x38], eax
mov ecx, eax
mov dword [esi + 0x2c], eax
lea eax, [ecx + 1]
mov dword [esp + 0xa4], eax
movsx eax, word [edx + 0x2a]
add eax, ecx
mov dword [esi + 0x2c], eax
cmp dword [esp + 0x80], 0
je 0x4e0a5a
mov ecx, dword [esi + 0xf0]
mov eax, dword [edx]
mov dword [esp + 0xcc], esi
mov dword [esp + 0x98], ecx
mov dword [esi + 0xf0], eax
jmp 0x4e0a76
mov edx, dword [esp + 0x10]
mov edi, dword [esp + 0x24]
mov ecx, dword [edx + 0x2c]
inc ecx
mov dword [edx + 0x2c], ecx
movzx eax, word [esi + 0x34]
add eax, ecx
cmp dword [ebp + 0x10], 0xb
mov dword [edx + 0x2c], eax
jne 0x4e0a4d
cmp byte [esi + 0x36], 5
jne 0x4e0a4d
mov dword [esp + 0x5c], 1
jmp 0x4e0a4d
mov edx, dword [esp + 0x10]
mov ecx, dword [edx + 0x2c]
inc ecx
mov dword [edx + 0x2c], ecx
movzx eax, word [esi + 0x34]
add eax, ecx
mov dword [edx + 0x2c], eax
test ecx, ecx
jne 0x4e0873
jmp 0x4e086a
mov eax, dword [esp + 0xc8]
mov dword [esp + 0xcc], eax
mov eax, dword [esp + 0xc4]
mov dword [esp + 0x98], eax
je 0x4e0a8e
push dword [esp + 0x14]
mov ecx, dword [ebp + 0xc]
push 0
push 0
push ecx
mov ecx, esi
call fcn.004c4060
add esp, 0x10
mov edx, dword [ebp + 0xc]
lea ecx, [esp + 0x110]
call fcn.004affd0
test eax, eax
jne 0x4e1b67
mov eax, dword [esp + 0x18]
cmp dword [eax + 0x38], 0
je 0x4e0ad9
push dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [esp + 0x64]
push ecx
push dword [esp + 0x30]
mov ecx, dword [ebp + 8]
push dword [esp + 0xac]
push ecx
push eax
mov ecx, esi
call fcn.004e1c20
add esp, 0x18
jmp 0x4e1b67
dec dword [esi + 0x38]
mov eax, dword [esi + 0x38]
mov dword [esp + 0x44], eax
mov dword [esp + 0x7c], eax
mov eax, dword [esp + 0x2c]
mov eax, dword [eax + 0x20]
and eax, 0x80
or eax, 0
je 0x4e0b29
cmp dword [esi + 0x78], 0
jne 0x4e0b29
cmp byte [esi + 0x12], 0
jne 0x4e0b29
cmp dword [ebp + 0x1c], 0
jne 0x4e0b29
inc dword [esi + 0x2c]
mov edx, 0x46
mov eax, dword [esi + 0x2c]
mov ecx, edi
push eax
push 0
mov dword [esp + 0xc8], eax
call fcn.0049c0b0
add esp, 8
mov edx, dword [esp + 0x18]
test byte [edx + 0x24], 0x20
jne 0x4e0c39
mov ecx, dword [edi + 0x6c]
mov edx, dword [esp + 0x8c]
cmp dword [edi + 0x70], ecx
jg 0x4e0b5e
push dword [esp + 0x20]
mov ecx, edi
push edx
push 0
mov edx, 0x49
call fcn.0049bf40
add esp, 0xc
jmp 0x4e0b8d
lea eax, [ecx + 1]
mov dword [edi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edi + 0x68]
mov dword [eax + ecx*4 + 8], edx
mov edx, dword [esp + 0x20]
mov dword [eax + ecx*4], 0x49
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
cmp dword [ebp + 0x1c], 0
je 0x4e0cf1
mov ecx, dword [esp + 0x10]
push 0x10
push dword [esp + 0x48]
mov esi, 1
mov dword [esp + 0x60], 0
push dword [ebp + 0xc]
mov dword [esp + 0x58], esi
push ecx
call fcn.004b6bc0
mov eax, dword [esp + 0xac]
add esp, 0x10
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x98]
mov dword [esp + 0xc4], eax
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
test byte [ecx + 0x24], 0x20
jne 0x4e0db6
push dword [esp + 0x20]
mov edx, 0x80
mov ecx, edi
push eax
call fcn.0049c0b0
add esp, 8
test esi, esi
jne 0x4e0eb2
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x78]
push dword [esp + 0x20]
inc dword [eax + 0x2c]
mov eax, dword [eax + 0x2c]
push dword [esp + 0x90]
mov dword [edx + ecx*4], eax
mov edx, 0x94
mov ecx, edi
call fcn.0049c0b0
add esp, 8
jmp 0x4e0eb2
mov eax, dword [esp + 0x34]
movzx ecx, word [eax + 0x32]
mov eax, dword [esi + 0x2c]
movsx esi, cx
mov dword [esp + 0x90], ecx
mov ecx, dword [esp + 0x10]
lea edx, [eax + 1]
inc eax
add eax, esi
mov dword [esp + 0x94], edx
cmp dword [ebp + 0x1c], 0
mov dword [esp + 0x3c], eax
mov dword [ecx + 0x2c], eax
jne 0x4e0b9b
mov eax, dword [ecx + 0x28]
mov dword [esp + 0x6c], eax
inc eax
mov dword [ecx + 0x28], eax
lea eax, [esi - 1]
add eax, edx
mov ecx, edi
push eax
push edx
push 0
mov edx, 0x49
call fcn.0049bf80
add esp, 0xc
mov edx, 0x71
mov ecx, edi
push esi
push dword [esp + 0x70]
call fcn.0049c0b0
mov edx, dword [esp + 0x3c]
add esp, 8
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x10]
mov ecx, eax
mov esi, dword [eax + 8]
call fcn.004c3190
mov edx, eax
test edx, edx
je 0x4e0ced
mov ecx, dword [esi]
cmp byte [ecx + 0x51], 0
je 0x4e0cdb
push edx
mov edx, 0xfffffff7
call fcn.0049cad0
add esp, 4
jmp 0x4e0ced
mov eax, dword [esi + 0x6c]
lea ecx, [eax + eax*4]
mov eax, dword [esi + 0x68]
mov byte [eax + ecx*4 - 0x13], 0xf7
mov dword [eax + ecx*4 - 4], edx
mov esi, dword [esp + 0x10]
cmp byte [esi + 0x12], 0
mov eax, 0x1004
jne 0x4e0d1e
cmp dword [esp + 0x40], 0
jne 0x4e0d1e
cmp dword [esp + 0x54], 0
jne 0x4e0d1e
cmp byte [esp + 0x30], 0
jne 0x4e0d1e
cmp dword [esp + 0x5c], 0
mov ecx, 0x100c
cmove eax, ecx
push dword [esp + 0x84]
mov edx, dword [esp + 0x64]
mov ecx, esi
push eax
push 0
push 0
push dword [ebp + 0xc]
call fcn.004ef6d0
mov ecx, eax
add esp, 0x14
mov dword [esp + 0x58], ecx
test ecx, ecx
je 0x4e1b67
movzx esi, byte [ecx + 0x31]
mov eax, dword [ecx + 0x18]
mov edx, dword [ecx + 0x1c]
mov dword [esp + 0xc4], eax
mov dword [esp + 0x64], edx
mov dword [esp + 0x4c], esi
cmp esi, 1
je 0x4e0bd7
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx + 0x74]
test eax, eax
cmovne ecx, eax
mov eax, dword [esp + 0x14]
mov byte [ecx + 0x14], 1
cmp esi, 2
jne 0x4e0bdb
test edx, edx
js 0x4e0bdb
cmp edx, eax
je 0x4e0bdb
mov ecx, dword [esp + 0x74]
mov eax, edx
sub eax, dword [esp + 0x88]
xor edx, edx
cmp byte [eax + ecx], dl
cmovne esi, edx
mov dword [esp + 0x4c], esi
jmp 0x4e0bd7
mov eax, dword [esp + 0x90]
xor esi, esi
cwde
test eax, eax
jle 0x4e0dfd
mov eax, dword [esp + 0x94]
mov edx, ecx
add eax, esi
mov ecx, edi
push eax
mov eax, dword [esp + 0x38]
mov eax, dword [eax + 4]
movsx eax, word [eax + esi*2]
push eax
push dword [esp + 0x1c]
call fcn.004b5050
mov ecx, dword [esp + 0x9c]
inc esi
movsx eax, cx
add esp, 0xc
mov ecx, dword [esp + 0x18]
cmp esi, eax
jl 0x4e0dc4
cmp dword [esp + 0x4c], 0
je 0x4e0e57
mov eax, dword [esp + 0x68]
test eax, eax
je 0x4e0e39
mov ecx, dword [edi]
cmp byte [ecx + 0x51], 0
jne 0x4e0e39
lea edx, [eax + eax*4]
mov eax, dword [edi + 0x68]
push dword [eax + edx*4 + 0x10]
lea esi, [eax + edx*4]
movsx edx, byte [esi + 1]
call fcn.0049cad0
add esp, 4
mov word [esi], 0xaa
mov dword [esi + 0x10], 0
mov eax, dword [esp + 0x90]
movsx esi, ax
mov eax, dword [esp + 0x94]
mov dword [esp + 0xa8], esi
mov dword [esp + 0x3c], eax
jmp 0x4e0eae
mov edx, dword [esp + 0x34]
push eax
push ecx
mov ecx, dword [esp + 0x34]
call fcn.004cb3d0
add esp, 4
mov edx, 0x5c
mov ecx, edi
push eax
push dword [esp + 0x44]
mov eax, dword [esp + 0x9c]
movsx esi, ax
push esi
push dword [esp + 0xa4]
call fcn.0049c340
add esp, 0x14
mov edx, 0x84
mov ecx, edi
push esi
push dword [esp + 0x98]
push dword [esp + 0x44]
push dword [esp + 0x78]
call fcn.0049c490
add esp, 0x10
mov esi, dword [esp + 0x4c]
cmp dword [ebp + 0x1c], 0
jne 0x4e10e8
cmp esi, 2
je 0x4e0eca
mov ecx, dword [esp + 0x58]
call fcn.004f0340
mov eax, dword [esp + 0x80]
test eax, eax
jne 0x4e0f9c
mov edx, dword [esp + 0x4c]
xor esi, esi
test edx, edx
je 0x4e0f1c
mov eax, dword [esp + 0xc4]
test eax, eax
js 0x4e0efd
sub eax, dword [esp + 0x88]
mov ecx, dword [esp + 0x74]
mov byte [eax + ecx], 0
mov ecx, dword [esp + 0x64]
test ecx, ecx
js 0x4e0f20
mov edx, dword [esp + 0x74]
mov eax, ecx
sub eax, dword [esp + 0x88]
mov byte [eax + edx], 0
mov edx, dword [esp + 0x4c]
jmp 0x4e0f20
mov ecx, dword [esp + 0x64]
cmp edx, 2
jne 0x4e0f44
xor eax, eax
test ecx, ecx
mov ecx, dword [esp + 0x70]
setns al
sub ecx, eax
test ecx, ecx
jle 0x4e0f44
mov edx, 0x11
mov ecx, edi
call fcn.0049bff0
mov esi, eax
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
push 0
push 0
push dword [esp + 0x7c]
push dword [esp + 0x94]
push 0
push 0x6d
call fcn.004ce620
add esp, 0x18
test esi, esi
je 0x4e0f91
mov eax, dword [edi]
mov edx, dword [edi + 0x6c]
cmp byte [eax + 0x51], 0
je 0x4e0f7d
mov eax, 0x647cc8
jmp 0x4e0f8e
test esi, esi
lea eax, [edx - 1]
cmovns eax, esi
lea ecx, [eax + eax*4]
mov eax, dword [edi + 0x68]
lea eax, [eax + ecx*4]
mov dword [eax + 8], edx
mov eax, dword [esp + 0x80]
mov esi, dword [esp + 0x4c]
test esi, esi
je 0x4e104f
test eax, eax
jne 0x4e0fda
mov eax, dword [esp + 0x14]
cmp dword [esp + 0xc4], eax
je 0x4e0fda
cmp dword [esp + 0x64], eax
je 0x4e0fda
push dword [esp + 0xa8]
mov edx, 0x1c
mov ecx, edi
push dword [esp + 0x40]
push dword [esp + 0x4c]
push eax
call fcn.0049c490
add esp, 0x10
cmp esi, 1
je 0x4e0fed
mov eax, dword [esp + 0x10]
dec dword [eax + 0x38]
mov eax, dword [eax + 0x38]
mov dword [esp + 0x7c], eax
cmp dword [esp + 0x34], 0
mov edx, dword [esp + 0x20]
cmovne edx, dword [esp + 0x3c]
mov ecx, dword [edi + 0x6c]
cmp dword [edi + 0x70], ecx
jg 0x4e101b
push 0
push dword [esp + 0x48]
mov ecx, edi
push edx
mov edx, 0x32
call fcn.0049bf40
jmp 0x4e10e5
lea eax, [ecx + 1]
mov dword [edi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edi + 0x68]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x44]
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
jmp 0x4e10e8
cmp dword [esp + 0x34], 0
mov ecx, edi
je 0x4e10b2
mov eax, dword [esp + 0x10]
mov edx, 0x24
push dword [esp + 0x44]
push dword [esp + 0x70]
dec dword [eax + 0x38]
mov esi, dword [eax + 0x38]
mov dword [esp + 0x84], esi
call fcn.0049c0b0
push dword [esp + 0x44]
mov edx, 0x7f
mov ecx, edi
push dword [esp + 0x78]
call fcn.0049c0b0
push 0
push dword [esp + 0x50]
mov edx, 0x1c
mov dword [esp + 0xd4], eax
push esi
push dword [esp + 0x30]
mov ecx, edi
call fcn.0049c490
add esp, 0x20
jmp 0x4e10e8
mov esi, dword [esp + 0x20]
mov edx, 0x29
push esi
push dword [esp + 0x48]
push dword [esp + 0x94]
call fcn.0049bf80
add esp, 0xc
mov dword [esp + 0x7c], eax
mov edx, 0x1f
mov ecx, edi
push esi
push eax
push dword [esp + 0x1c]
call fcn.0049bf80
add esp, 0xc
cmp byte [esp + 0x1f], 0
je 0x4e119d
mov eax, dword [esp + 0xa0]
test eax, eax
je 0x4e1119
cmp byte [eax], 0xa8
jne 0x4e1119
mov esi, dword [esp + 0x10]
mov edx, dword [esp + 0x38]
push edx
push dword [eax + 0x1c]
mov ecx, dword [esi + 8]
mov edx, 0x4e
jmp 0x4e1144
mov edx, dword [esp + 0x38]
mov esi, dword [esp + 0x10]
mov ecx, esi
push edx
mov edx, eax
call fcn.004b5390
mov edx, dword [esp + 0x3c]
add esp, 4
cmp eax, edx
je 0x4e1150
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x4e1150
push edx
push eax
mov edx, 0x4f
call fcn.0049c0b0
mov edx, dword [esp + 0x40]
add esp, 8
mov ecx, dword [edi + 0x6c]
cmp dword [edi + 0x70], ecx
jg 0x4e116e
push 0
push 0
push edx
mov edx, 0xf
mov ecx, edi
call fcn.0049bf40
add esp, 0xc
jmp 0x4e119d
lea eax, [ecx + 1]
mov dword [edi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edi + 0x68]
mov dword [eax + ecx*4], 0xf
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
cmp byte [esp + 0x50], 0
jne 0x4e1256
cmp dword [esp + 0x54], 0
jne 0x4e1261
mov eax, dword [esp + 0x40]
test eax, eax
je 0x4e1355
xor ecx, ecx
mov dword [esp + 0x50], ecx
push dword [ebp + 0x10]
mov edx, dword [esp + 0x44]
push dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
push 3
push 0
push dword [ebp + 8]
call fcn.004e0130
mov ecx, dword [esp + 0x64]
xor edx, edx
or ecx, eax
add esp, 0x14
mov eax, dword [esp + 0x18]
xor esi, esi
mov dword [esp + 0x50], ecx
cmp dx, word [eax + 0x2a]
jge 0x4e12ec
mov dword [esp + 0x68], edx
cmp ecx, 0xffffffff
je 0x4e12af
cmp esi, 0x20
jge 0x4e1224
mov eax, 1
mov ecx, esi
shl eax, cl
test dword [esp + 0x50], eax
jne 0x4e12af
mov eax, dword [esp + 0x18]
mov eax, dword [eax + 4]
test byte [eax + edx + 0xf], 1
jne 0x4e12af
mov edx, dword [esp + 0xac]
mov ecx, dword [edi + 0x6c]
add edx, esi
cmp dword [edi + 0x70], ecx
jg 0x4e1277
push 0
push edx
push 0
mov edx, 0x49
mov ecx, edi
call fcn.0049bf40
jmp 0x4e12c9
cmp dword [esp + 0x54], 0
je 0x4e11bf
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
call fcn.004ca720
mov dword [esp + 0x50], eax
jmp 0x4e11c5
lea eax, [ecx + 1]
mov dword [edi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edi + 0x68]
mov edi, dword [esp + 0xb0]
mov dword [eax + ecx*4], 0x49
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 0x4e12cc
mov eax, dword [esp + 0xac]
mov ecx, edi
mov edx, dword [esp + 0x18]
add eax, esi
push eax
push esi
push dword [esp + 0x1c]
call fcn.004b5050
add esp, 0xc
mov eax, dword [esp + 0x18]
inc esi
mov edx, dword [esp + 0x68]
mov ecx, dword [esp + 0x50]
add edx, 0x10
mov dword [esp + 0x68], edx
movsx eax, word [eax + 0x2a]
cmp esi, eax
jl 0x4e1203
cmp byte [esp + 0x1f], 0
jne 0x4e1351
cmp dword [esp + 0x34], 0
jne 0x4e1351
mov ecx, dword [edi + 0x6c]
cmp dword [edi + 0x70], ecx
jg 0x4e131e
mov edx, dword [esp + 0x38]
mov ecx, edi
push 0
push edx
push dword [esp + 0x28]
mov edx, 0x4e
call fcn.0049bf40
add esp, 0xc
jmp 0x4e1351
mov edx, dword [esp + 0x20]
lea eax, [ecx + 1]
mov dword [edi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edi + 0x68]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x38]
mov dword [eax + ecx*4], 0x4e
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 + 0x40]
push dword [ebp + 0x10]
mov ecx, dword [esp + 0x14]
mov edx, eax
push dword [esp + 0x1c]
push 1
push 1
push dword [ebp + 8]
call fcn.004e0130
mov edx, eax
xor ecx, ecx
mov eax, dword [esp + 0x2c]
xor esi, esi
add esp, 0x14
mov dword [esp + 0x24], edx
mov dword [esp + 0x68], ecx
cmp si, word [eax + 0x2a]
jge 0x4e14f1
mov esi, dword [esp + 0xa4]
movsx eax, word [eax + 0x28]
cmp ecx, eax
jne 0x4e13f5
mov ecx, dword [edi + 0x6c]
cmp dword [edi + 0x70], ecx
jg 0x4e13ba
push 0
push esi
push 0
mov edx, 0x49
mov ecx, edi
call fcn.0049bf40
jmp 0x4e14cc
lea eax, [ecx + 1]
mov dword [edi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edi + 0x68]
mov edi, dword [esp + 0xb0]
mov dword [eax + ecx*4], 0x49
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 8], esi
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
jmp 0x4e14d3
mov eax, dword [esp + 0x28]
mov eax, dword [eax + ecx*4]
test eax, eax
js 0x4e1461
mov ecx, dword [ebp + 8]
lea eax, [eax + eax*2]
mov edx, dword [ecx + eax*8 + 4]
test edx, edx
je 0x4e1430
cmp byte [edx], 0xa8
jne 0x4e1430
mov eax, dword [esp + 0x10]
push esi
push dword [edx + 0x1c]
mov edx, 0x4e
mov ecx, dword [eax + 8]
call fcn.0049c0b0
add esp, 8
jmp 0x4e14cf
mov ecx, dword [esp + 0x10]
push esi
call fcn.004b5390
add esp, 4
cmp eax, esi
je 0x4e14cf
mov ecx, dword [esp + 0x10]
mov ecx, dword [ecx + 8]
test ecx, ecx
je 0x4e14cf
push esi
push eax
mov edx, 0x4f
call fcn.0049c0b0
add esp, 8
jmp 0x4e14cf
test dword [esp + 0xb4], 1
je 0x4e14bb
cmp ecx, 0x1f
jg 0x4e14bb
mov eax, 1
shl eax, cl
test edx, eax
jne 0x4e14bb
mov ecx, dword [edi + 0x6c]
cmp dword [edi + 0x70], ecx
jle 0x4e13a4
lea eax, [ecx + 1]
mov dword [edi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edi + 0x68]
mov dword [eax + ecx*4], 0x49
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 8], esi
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
jmp 0x4e14cf
mov edx, dword [esp + 0x18]
push esi
push ecx
push dword [esp + 0x1c]
mov ecx, edi
call fcn.004b5050
add esp, 0xc
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x18]
inc esi
mov ecx, dword [esp + 0x68]
inc ecx
mov dword [esp + 0x68], ecx
movsx eax, word [eax + 0x2a]
cmp ecx, eax
mov eax, dword [esp + 0x18]
jl 0x4e1394
test byte [esp + 0xb4], 1
je 0x4e1663
push dword [esp + 0xa4]
mov edx, eax
mov ecx, edi
call fcn.004cb4a0
mov esi, dword [esp + 0x80]
add esp, 4
mov edx, dword [esp + 0x40]
mov ecx, dword [esp + 0x10]
push esi
push dword [ebp + 0x10]
push dword [esp + 0x28]
push dword [esp + 0x24]
push 1
push dword [ebp + 8]
push 0x7a
call fcn.004e00a0
mov edx, dword [edi + 0x6c]
add esp, 0x1c
cmp dword [esp + 0x34], 0
mov eax, dword [edi + 0x70]
je 0x4e1611
cmp eax, edx
jg 0x4e156d
push dword [esp + 0x3c]
mov edx, 0x1c
mov ecx, edi
push esi
push dword [esp + 0x1c]
call fcn.0049bf40
add esp, 0xc
mov edx, eax
jmp 0x4e15a0
mov esi, dword [esp + 0x14]
lea eax, [edx + 1]
mov dword [edi + 0x6c], eax
lea ecx, [edx + edx*4]
mov eax, dword [edi + 0x68]
mov dword [eax + ecx*4 + 4], esi
mov esi, dword [esp + 0x7c]
mov dword [eax + ecx*4 + 8], esi
mov esi, dword [esp + 0x3c]
mov dword [eax + ecx*4], 0x1c
mov dword [eax + ecx*4 + 0xc], esi
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [edi]
cmp byte [eax + 0x51], 0
jne 0x4e15be
mov eax, dword [edi + 0x68]
lea ecx, [edx + edx*4]
mov edx, dword [esp + 0xa8]
mov byte [eax + ecx*4 + 1], 0xfd
mov dword [eax + ecx*4 + 0x10], edx
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
xor eax, eax
xor esi, esi
cmp ax, word [ecx + 0x2a]
jge 0x4e1667
mov eax, dword [esp + 0x28]
cmp dword [eax + esi*4], 0
jge 0x4e1602
movsx eax, word [ecx + 0x28]
cmp esi, eax
je 0x4e1602
mov eax, dword [esp + 0xa4]
add eax, esi
push eax
push esi
push edx
mov edx, ecx
mov ecx, edi
call fcn.004b5050
mov ecx, dword [esp + 0x24]
add esp, 0xc
movsx eax, word [ecx + 0x2a]
inc esi
mov edx, dword [esp + 0x14]
cmp esi, eax
jl 0x4e15d4
jmp 0x4e1667
cmp eax, edx
jg 0x4e162f
push dword [esp + 0x20]
mov edx, 0x1f
mov ecx, edi
push esi
push dword [esp + 0x1c]
call fcn.0049bf40
add esp, 0xc
jmp 0x4e15be
lea eax, [edx + 1]
mov dword [edi + 0x6c], eax
lea ecx, [edx + edx*4]
mov eax, dword [edi + 0x68]
mov edx, dword [esp + 0x14]
mov dword [eax + ecx*4 + 8], esi
mov esi, dword [esp + 0x20]
mov dword [eax + ecx*4], 0x1f
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 0xc], esi
mov dword [eax + ecx*4 + 0x10], 0
jmp 0x4e15c2
mov ecx, dword [esp + 0x18]
cmp dword [esp + 0x80], 0
jne 0x4e1907
xor esi, esi
lea eax, [esp + 0x5c]
push esi
push dword [esp + 0x2c]
mov edx, ecx
mov ecx, dword [esp + 0x18]
push eax
push dword [esp + 0x88]
push dword [ebp + 0x10]
push dword [esp + 0x44]
push dword [esp + 0x38]
push dword [esp + 0x54]
push dword [esp + 0xa4]
push dword [esp + 0x38]
push dword [esp + 0xa0]
call fcn.004cccc0
add esp, 0x2c
cmp dword [esp + 0x54], esi
je 0x4e16dd
push dword [esp + 0xb8]
mov edx, dword [esp + 0x1c]
push dword [esp + 0x2c]
mov ecx, dword [esp + 0x18]
push esi
push dword [esp + 0x2c]
call fcn.004ca0e0
add esp, 0x10
cmp dword [esp + 0x5c], esi
jne 0x4e16ee
cmp byte [esp + 0x30], 0
je 0x4e17c3
cmp dword [esp + 0x34], 0
mov esi, dword [edi + 0x6c]
mov eax, dword [edi + 0x70]
je 0x4e176f
cmp eax, esi
jg 0x4e171c
push dword [esp + 0x3c]
mov edx, 0x1c
mov ecx, edi
push 0
push dword [esp + 0x1c]
call fcn.0049bf40
add esp, 0xc
mov esi, eax
jmp 0x4e174f
mov edx, dword [esp + 0x14]
lea eax, [esi + 1]
mov dword [edi + 0x6c], eax
lea ecx, [esi + esi*4]
mov eax, dword [edi + 0x68]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x3c]
mov dword [eax + ecx*4], 0x1c
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [edi]
cmp byte [eax + 0x51], 0
jne 0x4e17c3
mov eax, dword [edi + 0x68]
lea ecx, [esi + esi*4]
mov edx, dword [esp + 0xa8]
mov byte [eax + ecx*4 + 1], 0xfd
mov dword [eax + ecx*4 + 0x10], edx
jmp 0x4e17c3
cmp eax, esi
jg 0x4e1790
push dword [esp + 0x20]
mov edx, 0x1f
mov ecx, edi
push 0
push dword [esp + 0x1c]
call fcn.0049bf40
add esp, 0xc
mov esi, eax
jmp 0x4e17c3
mov edx, dword [esp + 0x14]
lea eax, [esi + 1]
mov dword [edi + 0x6c], eax
lea ecx, [esi + esi*4]
mov eax, dword [edi + 0x68]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x20]
mov dword [eax + ecx*4], 0x1f
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
push 0xffffffffffffffff
push dword [esp + 0x7c]
push dword [esp + 0x8c]
push dword [esp + 0x20]
call fcn.004c4f70
add esp, 0x10
cmp dword [esp + 0x54], 1
jg 0x4e17f3
mov al, byte [esp + 0x30]
test al, al
je 0x4e184b
mov ecx, dword [edi + 0x6c]
cmp dword [edi + 0x70], ecx
jg 0x4e1814
push 0
push 0
push dword [esp + 0x1c]
mov edx, 0x7b
mov ecx, edi
call fcn.0049bf40
add esp, 0xc
jmp 0x4e1847
mov edx, dword [esp + 0x14]
lea eax, [ecx + 1]
mov dword [edi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edi + 0x68]
mov dword [eax + ecx*4], 0x7b
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 al, byte [esp + 0x30]
cmp dword [esp + 0x5c], 0
jne 0x4e1856
test al, al
je 0x4e187c
mov eax, dword [edi]
mov edx, dword [edi + 0x6c]
cmp byte [eax + 0x51], 0
je 0x4e1868
mov eax, 0x647cc8
jmp 0x4e1879
test esi, esi
lea eax, [edx - 1]
cmovns eax, esi
lea ecx, [eax + eax*4]
mov eax, dword [edi + 0x68]
lea eax, [eax + ecx*4]
mov dword [eax + 8], edx
mov esi, dword [esp + 0x54]
test esi, esi
je 0x4e18a5
push dword [esp + 0xb8]
mov edx, dword [esp + 0x1c]
push dword [esp + 0x2c]
mov ecx, dword [esp + 0x18]
push dword [esp + 0x40]
push 0
call fcn.004ca0e0
add esp, 0x10
mov edx, dword [esp + 0x18]
xor eax, eax
cmp dword [esp + 0x4c], 2
mov ecx, dword [esp + 0x10]
push 0
sete al
push 0
lea eax, [eax*2 + 4]
push eax
push dword [esp + 0x84]
push dword [esp + 0x48]
push dword [esp + 0x98]
push dword [esp + 0x2c]
call fcn.004ce3e0
add esp, 0x1c
test esi, esi
je 0x4e1907
push dword [esp + 0xb8]
mov edx, dword [esp + 0x1c]
push dword [esp + 0x2c]
mov ecx, dword [esp + 0x18]
push dword [esp + 0x28]
push dword [ebp + 8]
call fcn.004cb200
add esp, 0x10
mov edx, dword [esp + 0xc0]
test edx, edx
je 0x4e195f
mov ecx, dword [edi + 0x6c]
cmp dword [edi + 0x70], ecx
jg 0x4e1930
push 0
push 1
push edx
mov edx, 0x53
mov ecx, edi
call fcn.0049bf40
add esp, 0xc
jmp 0x4e195f
lea eax, [ecx + 1]
mov dword [edi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edi + 0x68]
mov dword [eax + ecx*4], 0x53
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 esi, dword [esp + 0x7c]
mov edx, dword [esp + 0x40]
mov ecx, dword [esp + 0x10]
push esi
push dword [ebp + 0x10]
push dword [esp + 0x28]
push dword [esp + 0x24]
push 2
push dword [ebp + 8]
push 0x7a
call fcn.004e00a0
mov eax, dword [esp + 0x68]
add esp, 0x1c
cmp eax, 1
je 0x4e1a9b
cmp eax, 2
jne 0x4e19d5
mov ecx, dword [edi + 0xc]
not esi
mov eax, dword [ecx + 0x3c]
add eax, dword [ecx + 0x38]
jns 0x4e19be
push esi
mov edx, edi
call fcn.0049c590
mov ecx, dword [esp + 0x5c]
add esp, 4
call fcn.004f0340
jmp 0x4e1a9b
mov ecx, dword [ecx + 0x40]
mov eax, dword [edi + 0x6c]
mov dword [ecx + esi*4], eax
mov ecx, dword [esp + 0x58]
call fcn.004f0340
jmp 0x4e1a9b
cmp dword [esp + 0x34], 0
je 0x4e1a4e
mov ecx, dword [edi + 0xc]
not esi
mov eax, dword [ecx + 0x3c]
add eax, dword [ecx + 0x38]
jns 0x4e19f6
push esi
mov edx, edi
call fcn.0049c590
add esp, 4
jmp 0x4e19ff
mov ecx, dword [ecx + 0x40]
mov eax, dword [edi + 0x6c]
mov dword [ecx + esi*4], eax
mov ecx, dword [edi + 0x6c]
cmp dword [edi + 0x70], ecx
jg 0x4e1a26
mov edx, dword [esp + 0xbc]
mov ecx, edi
push 0
push edx
push dword [esp + 0x74]
mov edx, 5
call fcn.0049bf40
add esp, 0xc
jmp 0x4e1a9b
mov edx, dword [esp + 0x6c]
lea eax, [ecx + 1]
mov dword [edi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edi + 0x68]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0xbc]
mov dword [eax + ecx*4], 5
mov dword [eax + ecx*4 + 8], edx
jmp 0x4e1a8b
mov ecx, dword [edi + 0x6c]
cmp dword [edi + 0x70], ecx
jg 0x4e1a6c
push 0
push esi
push 0
mov edx, 0xb
mov ecx, edi
call fcn.0049bf40
add esp, 0xc
jmp 0x4e1a9b
lea eax, [ecx + 1]
mov dword [edi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edi + 0x68]
mov dword [eax + ecx*4], 0xb
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 8], esi
mov dword [eax + ecx*4 + 0x10], 0
mov dword [eax + ecx*4 + 0xc], 0
mov ecx, dword [edi + 0xc]
mov edx, dword [esp + 0x44]
not edx
mov eax, dword [ecx + 0x3c]
add eax, dword [ecx + 0x38]
jns 0x4e1ab9
push edx
mov edx, edi
call fcn.0049c590
add esp, 4
jmp 0x4e1ac2
mov ecx, dword [ecx + 0x40]
mov eax, dword [edi + 0x6c]
mov dword [ecx + edx*4], eax
mov eax, dword [esp + 0x10]
cmp byte [eax + 0x12], 0
jne 0x4e1ae5
cmp dword [eax + 0x78], 0
jne 0x4e1ae5
cmp dword [ebp + 0x1c], 0
jne 0x4e1ae5
cmp dword [eax + 0x70], 0
je 0x4e1ae5
mov ecx, eax
call fcn.004cb630
mov edx, dword [esp + 0xc0]
test edx, edx
je 0x4e1b67
mov ecx, dword [edi + 0x6c]
cmp dword [edi + 0x70], ecx
jg 0x4e1b0e
push 0
push 1
push edx
mov edx, 0x51
mov ecx, edi
call fcn.0049bf40
add esp, 0xc
jmp 0x4e1b3d
lea eax, [ecx + 1]
mov dword [edi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edi + 0x68]
mov dword [eax + ecx*4], 0x51
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, 1
mov ecx, edi
call fcn.0049e010
mov eax, dword [edi]
cmp byte [eax + 0x51], 0
jne 0x4e1b67
mov ecx, dword [edi + 0x74]
mov edx, str.rows_updated
push 0
push 1
push 0xffffffffffffffff
call fcn.0049b210
add esp, 0xc
mov eax, dword [esp + 0xcc]
test eax, eax
je 0x4e1b7f
mov ecx, dword [esp + 0x98]
mov dword [eax + 0xf0], ecx
mov eax, dword [esp + 0x2c]
cmp dword [eax + 0x1e8], 0
je 0x4e1ba0
mov edx, dword [esp + 0x28]
mov ecx, eax
call fcn.0047cce0
mov eax, dword [esp + 0x2c]
mov edi, dword [ebp + 0xc]
jmp 0x4e1bdf
mov ecx, dword [esp + 0x28]
cmp ecx, dword [eax + 0x138]
jb 0x4e1bcb
cmp ecx, dword [eax + 0x13c]
jae 0x4e1bcb
mov eax, dword [eax + 0x134]
mov edi, dword [ebp + 0xc]
mov dword [ecx], eax
mov eax, dword [esp + 0x2c]
mov dword [eax + 0x134], ecx
jmp 0x4e1bdf
push ecx
call fcn.0047cc70
mov eax, dword [esp + 0x30]
add esp, 4
mov edi, dword [ebp + 0xc]
jmp 0x4e1bdf
mov eax, edx
mov edx, dword [esp + 0x60]
mov ecx, eax
call fcn.004c22f0
mov eax, dword [ebp + 8]
test eax, eax
je 0x4e1bfc
mov ecx, dword [esp + 0x2c]
mov edx, eax
call fcn.004b2530
test edi, edi
je 0x4e1c0b
mov ecx, dword [esp + 0x2c]
mov edx, edi
call fcn.004b1380
pop edi
pop esi
mov esp, ebp
pop ebp
ret