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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov ecx, dword [ebp + 0xc]
xor eax, eax
push ebx
mov ebx, dword [ebp + 0x14]
xorps xmm0, xmm0
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0xa0], eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x78], eax
cmp dword [esi + 0x24], 0
mov dword [ebp - 0x58], eax
mov dword [ebp - 0xac], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x9c], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x24], eax
mov eax, dword [esi]
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x98], 0
mov dword [ebp - 0x90], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x94], 0
movlpd qword [ebp - 0xb8], xmm0
mov dword [ebp - 0x50], eax
jne 0x509e2a
cmp byte [eax + 0x51], 0
jne 0x509e2a
push ecx
push esi
call fcn.00506e40
mov ebx, eax
add esp, 8
mov dword [ebp - 8], ebx
test ebx, ebx
je 0x509e27
push dword [ebx + 0x48]
push dword [esi]
call fcn.00503900
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0xa4]
push eax
push edi
push 0x7f
push ebx
push esi
call fcn.00507ca0
mov dword [ebp - 0x28], eax
mov eax, dword [ebx + 0xc]
push ebx
push esi
mov dword [ebp - 0x8c], eax
call fcn.005162a0
add esp, 0x24
test eax, eax
jne 0x509e27
push dword [ebp - 0xa4]
push ebx
push esi
call fcn.004f9a50
add esp, 0xc
test eax, eax
jne 0x509e27
mov edx, dword [esi + 0x28]
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x88], edx
lea eax, [edx + 1]
mov dword [esi + 0x28], eax
test byte [ebx + 0x24], 0x80
mov dword [ebp - 0x70], eax
jne 0x50815c
mov dword [ebp - 0x2c], 0
jmp 0x50816b
push ebx
call fcn.00501290
mov dword [ebp - 0x2c], eax
add esp, 4
mov eax, dword [ebp - 0x70]
mov ecx, dword [ebx + 8]
xor edi, edi
mov dword [ebp - 0x84], edi
test ecx, ecx
je 0x5081a4
mov ebx, dword [ebp - 0x10]
mov edx, eax
nop
cmp dword [ebp - 0x2c], ecx
mov eax, edx
cmovne eax, ebx
inc edx
mov dword [esi + 0x28], edx
inc edi
mov ecx, dword [ecx + 0x14]
mov ebx, eax
test ecx, ecx
jne 0x508180
mov dword [ebp - 0x10], ebx
mov edx, eax
mov ebx, dword [ebp - 8]
mov dword [ebp - 0x84], edi
mov eax, dword [ebp + 0x24]
test eax, eax
je 0x5081c0
mov edx, dword [eax + 0x1c]
mov eax, dword [eax + 0x20]
mov dword [ebp - 0x70], eax
mov eax, dword [ebp - 0x88]
mov dword [ebp - 0x10], edx
mov dword [esi + 0x28], eax
mov eax, dword [ebp + 0xc]
push 0
mov dword [eax + 0x34], edx
movsx eax, word [ebx + 0x2a]
add eax, edi
lea eax, [eax*4 + 6]
add eax, edi
push eax
push dword [ebp - 0x50]
call fcn.004eb9e0
mov edi, eax
add esp, 0xc
mov dword [ebp - 0x18], edi
test edi, edi
je 0x509e27
movsx eax, word [ebx + 0x2a]
lea ecx, [edi + eax*4]
mov eax, dword [ebp - 0x84]
mov dword [ebp - 0x60], ecx
lea ecx, [ecx + eax*4]
inc eax
push eax
add ecx, 4
push 1
push ecx
mov dword [ebp - 0x54], ecx
call sub.msvcrt.dll_memset
mov eax, dword [ebp - 0x84]
add esp, 0xc
mov ecx, dword [ebp - 0x54]
mov byte [ecx + eax + 1], 0
xor eax, eax
xor ecx, ecx
cmp ax, word [ebx + 0x2a]
jge 0x508240
nop
mov dword [edi + ecx*4], 0xffffffff
inc ecx
movsx eax, word [ebx + 0x2a]
cmp ecx, eax
jl 0x508230
mov eax, dword [ebp + 0xc]
xorps xmm0, xmm0
mov ecx, dword [ebp + 0x24]
mov dword [ebp - 0x10c], eax
mov eax, dword [esi + 8]
movlpd qword [ebp - 0x104], xmm0
mov dword [ebp - 0xfc], 0
mov dword [ebp - 0xf4], 0
mov dword [ebp - 0x110], esi
mov dword [ebp - 0x108], ecx
mov dword [ebp - 0xf8], 0x200
mov dword [ebp - 4], eax
test eax, eax
jne 0x5082b0
cmp dword [esi + 0x74], eax
jne 0x50829c
mov eax, dword [esi]
test byte [eax + 0x4c], 8
jne 0x50829c
mov byte [esi + 0x17], 1
push esi
call fcn.0050b1e0
add esp, 4
mov dword [ebp - 4], eax
test eax, eax
je 0x508584
mov ecx, dword [ebp + 0x10]
xor ebx, ebx
xor al, al
mov byte [ebp - 0x19], 0
mov byte [ebp - 9], al
mov dword [ebp - 0x4c], ebx
cmp dword [ecx], ebx
jle 0x50848a
lea esi, [ecx + 4]
mov dword [ebp - 0x20], esi
nop
push dword [esi]
lea eax, [ebp - 0x110]
push eax
call fcn.005022c0
add esp, 8
test eax, eax
jne 0x508581
mov edx, dword [ebp - 8]
xor edi, edi
movsx eax, word [edx + 0x2a]
test eax, eax
jle 0x508372
mov eax, dword [edx + 4]
mov ebx, eax
mov dword [ebp - 0x74], eax
nop
mov edx, dword [ebx]
mov esi, dword [esi + 4]
mov dword [ebp - 0x7c], edx
sub esi, edx
nop word [eax + eax]
movzx ecx, byte [edx]
movzx eax, byte [esi + edx]
cmp ecx, eax
jne 0x508348
test ecx, ecx
jne 0x50835a
mov edx, dword [ebp - 8]
movsx eax, word [edx + 0x28]
cmp edi, eax
jne 0x5083de
mov esi, dword [ebp - 0x20]
mov ebx, dword [ebp - 0x4c]
mov byte [ebp - 9], 1
mov eax, dword [esi]
mov dword [ebp - 0x90], eax
mov eax, dword [ebp - 0x18]
mov dword [eax + edi*4], ebx
jmp 0x508372
movzx eax, byte [eax + 0x586568]
movzx ecx, byte [ecx + 0x586568]
sub ecx, eax
jne 0x50835d
inc edx
jmp 0x508310
mov edx, dword [ebp - 8]
inc edi
mov esi, dword [ebp - 0x20]
add ebx, 0x14
movsx eax, word [edx + 0x2a]
cmp edi, eax
jl 0x508300
mov ebx, dword [ebp - 0x4c]
movsx eax, word [edx + 0x2a]
cmp edi, eax
jl 0x508425
cmp dword [ebp - 0x2c], 0
jne 0x5085a3
mov esi, dword [esi + 4]
push str._ROWID_
push esi
call fcn.005076d0
add esp, 8
test eax, eax
je 0x5083c5
push str.ROWID
push esi
call fcn.005076d0
add esp, 8
test eax, eax
je 0x5083c5
push 0x58cdb8
push esi
call fcn.005076d0
add esp, 8
test eax, eax
jne 0x5085a3
mov esi, dword [ebp - 0x20]
or edi, 0xffffffff
mov byte [ebp - 9], 1
mov edx, str.ROWID
mov eax, dword [esi]
mov dword [ebp - 0x90], eax
jmp 0x508439
cmp dword [ebp - 0x2c], 0
mov ecx, dword [ebp - 0x74]
je 0x508406
lea eax, [edi + edi*4]
test byte [ecx + eax*4 + 0x10], 1
je 0x508406
mov eax, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x4c]
mov esi, dword [ebp - 0x20]
mov byte [ebp - 0x19], 1
mov dword [eax + edi*4], ebx
jmp 0x508372
lea eax, [edi + edi*4]
test byte [ecx + eax*4 + 0x10], 0x60
jne 0x50856e
mov eax, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x4c]
mov esi, dword [ebp - 0x20]
mov dword [eax + edi*4], ebx
jmp 0x508372
test edi, edi
jns 0x508430
mov edx, str.ROWID
jmp 0x508439
mov eax, dword [edx + 4]
lea ecx, [edi + edi*4]
mov edx, dword [eax + ecx*4]
mov eax, dword [ebp - 0x50]
mov ecx, dword [ebp - 0x34]
add ecx, ecx
mov eax, dword [eax + 0x10]
push dword [eax + ecx*8]
mov eax, dword [ebp - 8]
push edx
push dword [eax]
push 0x17
push dword [ebp + 8]
call fcn.004e46d0
add esp, 0x14
cmp eax, 1
je 0x508581
cmp eax, 2
jne 0x508472
mov eax, dword [ebp - 0x18]
mov dword [eax + edi*4], 0xffffffff
mov ecx, dword [ebp + 0x10]
inc ebx
add esi, 0x14
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x20], esi
cmp ebx, dword [ecx]
jl 0x5082d0
mov al, byte [ebp - 9]
mov edx, dword [ebp - 8]
mov bl, byte [ebp - 0x19]
add bl, al
mov dword [ebp - 0x7c], 0xfffd
mov byte [ebp - 0x5c], bl
test byte [edx + 0x24], 0x60
je 0x508560
movzx eax, word [edx + 0x2a]
nop word [eax + eax]
xor ecx, ecx
xor ebx, ebx
xor esi, esi
cmp cx, ax
jge 0x50855d
xor edi, edi
mov ecx, dword [ebp - 0x18]
cmp dword [ecx + esi*4], 0
jge 0x508540
mov eax, dword [edx + 4]
test byte [eax + edi + 0x10], 0x60
je 0x508540
mov eax, dword [eax + edi + 4]
xorps xmm0, xmm0
mov dword [ebp - 0xbc], 0
movq qword [ebp - 0xc4], xmm0
mov dword [ebp - 0xbc], ecx
movups xmmword [ebp - 0xd4], xmm0
mov dword [ebp - 0xd0], 0x4c4dd0
test eax, eax
je 0x50851e
push eax
lea eax, [ebp - 0xd4]
push eax
call fcn.00526d50
mov edx, dword [ebp - 8]
add esp, 8
mov ecx, dword [ebp - 0x18]
cmp byte [ebp - 9], 0
mov ax, word [ebp - 0xc0]
jne 0x50852f
and ax, word [ebp - 0x7c]
test ax, ax
je 0x508540
mov dword [ecx + esi*4], 0x1869f
mov ebx, 1
movzx eax, word [edx + 0x2a]
inc esi
mov ecx, eax
add edi, 0x14
cwde
cmp esi, eax
jl 0x5084c1
mov eax, ecx
test ebx, ebx
jne 0x5084b0
mov bl, byte [ebp - 0x5c]
cmp dword [edx + 0x38], 0
je 0x5085c4
or eax, 0xffffffff
or ecx, 0xffffffff
jmp 0x5085d2
push dword [ebp - 0x7c]
push str.cannot_UPDATE_generated_column___s_
push dword [ebp + 8]
call fcn.004ed670
add esp, 0xc
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x50]
cmp dword [eax + 0x1f8], 0
je 0x509d94
push edi
push eax
call fcn.004d5570
add esp, 8
jmp 0x509e27
mov ecx, dword [ebp + 0x10]
lea eax, [ebx + ebx*4]
mov ebx, dword [ebp + 8]
push dword [ecx + eax*4 + 8]
push str.no_such_column:__s
push ebx
call fcn.004ed670
add esp, 0xc
mov byte [ebx + 0x11], 1
jmp 0x508581
xorps xmm0, xmm0
movlpd qword [ebp - 0x80], xmm0
mov ecx, dword [ebp - 0x7c]
mov eax, dword [ebp - 0x80]
mov esi, dword [ebp + 0xc]
mov dword [esi + 0x40], eax
movzx eax, bl
push eax
push dword [ebp - 0x18]
mov dword [esi + 0x44], ecx
push edx
push dword [ebp + 8]
mov dword [ebp - 0xa8], eax
call fcn.004f4320
mov ebx, eax
add esp, 0x10
cmp dword [ebp + 0x18], 5
mov ecx, 1
mov eax, dword [ebp - 0x58]
cmove eax, ecx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x58], eax
xor edi, edi
mov eax, dword [ebp - 8]
mov dword [ebp - 0x64], edi
mov esi, dword [eax + 8]
test esi, esi
je 0x50876d
nop
cmp byte [ebp - 0x5c], 0
jne 0x5087e0
cmp ebx, 1
jg 0x5087e0
cmp esi, dword [ebp - 0x2c]
je 0x5087e0
mov eax, dword [esi + 0x24]
test eax, eax
je 0x5086a0
mov ecx, dword [ebp - 0x18]
xorps xmm0, xmm0
push eax
lea eax, [ebp - 0xd4]
mov dword [ebp - 0xbc], 0
movups xmmword [ebp - 0xd4], xmm0
push eax
movq qword [ebp - 0xc4], xmm0
mov dword [ebp - 0xd0], 0x4c4dd0
mov dword [ebp - 0xbc], ecx
call fcn.00526d50
mov ax, word [ebp - 0xc0]
add esp, 8
cmp byte [ebp - 9], 0
jne 0x508697
mov ecx, 0xfffd
and ax, cx
test ax, ax
jne 0x5087e0
xor ecx, ecx
xor eax, eax
xor edi, edi
mov dword [ebp - 0x7c], ecx
cmp ax, word [esi + 0x32]
jae 0x50874a
xor ebx, ebx
mov eax, dword [esi + 4]
mov ecx, dword [ebp - 0x18]
movzx eax, word [eax + edi*2]
test ax, ax
js 0x5086cf
cwde
mov eax, dword [ecx + eax*4]
not eax
shr eax, 0x1f
jmp 0x508733
mov eax, dword [esi + 0x28]
xorps xmm0, xmm0
movups xmmword [ebp - 0xf0], xmm0
mov dword [ebp - 0xd8], 0
movq qword [ebp - 0xe0], xmm0
mov eax, dword [eax + ebx + 4]
mov dword [ebp - 0xec], 0x4c4dd0
mov dword [ebp - 0xd8], ecx
test eax, eax
je 0x508716
push eax
lea eax, [ebp - 0xf0]
push eax
call fcn.00526d50
add esp, 8
cmp byte [ebp - 9], 0
mov cx, word [ebp - 0xdc]
jne 0x50872b
mov eax, 0xfffd
and cx, ax
xor eax, eax
test cx, cx
setne al
test eax, eax
jne 0x5087b5
movzx eax, word [esi + 0x32]
inc edi
add ebx, 0x14
cmp edi, eax
jl 0x5086b5
mov ecx, dword [ebp - 0x7c]
mov edi, dword [ebp - 0x64]
mov eax, dword [ebp - 0x54]
mov byte [edi + eax + 1], 0
mov eax, dword [ebp - 0x60]
mov ebx, dword [ebp - 0x20]
mov dword [eax + edi*4], ecx
inc edi
mov esi, dword [esi + 0x14]
mov dword [ebp - 0x64], edi
test esi, esi
jne 0x508620
mov esi, dword [ebp + 8]
mov ecx, dword [ebp - 0x60]
inc dword [esi + 0x2c]
mov eax, dword [esi + 0x2c]
mov dword [ecx + edi*4], eax
cmp dword [ebp - 0x58], 0
je 0x508797
mov eax, dword [ebp - 0x84]
inc eax
push eax
push 1
push dword [ebp - 0x54]
call sub.msvcrt.dll_memset
add esp, 0xc
cmp byte [esi + 0x12], 0
jne 0x5087a7
mov eax, dword [ebp - 4]
or dword [eax + 0x98], 0x20
cmp dword [ebp - 0x28], 0
jne 0x508800
test ebx, ebx
jne 0x508800
xor bl, bl
jmp 0x508802
mov edx, dword [ebp + 8]
mov edi, dword [ebp - 0x64]
mov ecx, dword [edx + 0x2c]
inc ecx
mov dword [edx + 0x2c], ecx
movzx eax, word [esi + 0x34]
add eax, ecx
cmp dword [ebp + 0x18], 0xb
mov dword [edx + 0x2c], eax
jne 0x5087f3
cmp byte [esi + 0x36], 5
jne 0x5087f3
mov dword [ebp - 0x58], 1
jmp 0x5087f3
mov edx, dword [ebp + 8]
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 0x508755
jmp 0x50874d
mov bl, 1
mov eax, dword [esi + 0x74]
test eax, eax
mov ecx, dword [ebp - 0x34]
cmovne esi, eax
mov eax, 1
shl eax, cl
mov edx, dword [esi + 0x54]
test edx, eax
jne 0x508832
bts edx, ecx
mov dword [esi + 0x54], edx
cmp ecx, 1
jne 0x508832
push esi
call fcn.004fbe70
mov ecx, dword [ebp - 0x34]
add esp, 4
mov eax, dword [esi + 0x50]
or byte [esi + 0x14], bl
bts eax, ecx
mov ebx, dword [ebp + 8]
mov dword [esi + 0x50], eax
mov esi, dword [ebp - 8]
cmp dword [esi + 0x38], 0
jne 0x5088b3
mov eax, dword [ebp - 0x60]
mov edx, dword [ebp - 0x28]
mov eax, dword [eax + edi*4]
mov edi, dword [ebx + 0x2c]
inc edi
mov dword [ebp - 0x30], eax
cmp byte [ebp - 0x19], 0
mov dword [ebp - 0x38], edi
mov dword [ebx + 0x2c], edi
mov dword [ebp - 0x14], edi
jne 0x508876
test edx, edx
jne 0x508876
mov eax, dword [ebp - 0x20]
mov ecx, edi
test eax, eax
je 0x50888b
movsx ecx, word [esi + 0x2a]
lea eax, [edi + 1]
add ecx, edi
mov dword [ebp - 0x9c], eax
mov eax, dword [ebp - 0x20]
mov dword [ebx + 0x2c], ecx
cmp byte [ebp - 0x5c], 0
jne 0x508899
test edx, edx
jne 0x508899
test eax, eax
je 0x5088a4
lea eax, [ecx + 1]
mov dword [ebp - 0x38], eax
mov ecx, eax
mov dword [ebx + 0x2c], eax
lea eax, [ecx + 1]
mov dword [ebp - 0x6c], eax
movsx eax, word [esi + 0x2a]
add eax, ecx
mov dword [ebx + 0x2c], eax
mov edx, dword [ebp - 0x8c]
test edx, edx
je 0x5088d6
mov ecx, dword [ebx + 0xf0]
mov eax, dword [esi]
mov dword [ebp - 0xb0], ebx
mov dword [ebp - 0x7c], ecx
mov dword [ebx + 0xf0], eax
jmp 0x5088eb
mov eax, dword [ebp - 0xb4]
mov dword [ebp - 0xb0], eax
mov eax, dword [ebp - 0xb8]
mov dword [ebp - 0x7c], eax
mov edi, dword [ebp + 0x14]
test edx, edx
je 0x508906
push dword [ebp - 0x10]
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push edi
push esi
push ebx
call fcn.004fb560
add esp, 0x18
lea eax, [ebp - 0x110]
push edi
push eax
call fcn.005022c0
add esp, 8
test eax, eax
jne 0x509d75
cmp dword [esi + 0x38], eax
je 0x508946
push dword [ebp + 0x18]
push edi
mov edi, dword [ebp - 0x18]
push edi
push dword [ebp - 0x90]
push dword [ebp + 0x10]
push esi
push dword [ebp + 0xc]
push ebx
call fcn.005207a0
add esp, 0x20
jmp 0x509d78
mov eax, dword [ebp - 0x50]
dec dword [ebx + 0x38]
mov edi, dword [ebx + 0x38]
mov dword [ebp - 0x34], edi
mov ecx, dword [eax + 0x24]
xor eax, eax
and ecx, 1
mov dword [ebp - 0x44], edi
or eax, ecx
je 0x5089d0
cmp dword [ebx + 0x78], 0
jne 0x5089d0
cmp byte [ebx + 0x12], 0
jne 0x5089d0
cmp dword [ebp + 0x24], 0
jne 0x5089d0
inc dword [ebx + 0x2c]
mov edx, dword [ebx + 0x2c]
mov ebx, dword [ebp - 4]
mov dword [ebp - 0xac], edx
mov ecx, dword [ebx + 0x6c]
cmp dword [ebx + 0x70], ecx
jg 0x50899c
push 0
push edx
push 0
push 0x45
push ebx
call fcn.004d27d0
add esp, 0x14
jmp 0x5089d3
mov edi, dword [ebp - 0x34]
lea eax, [ecx + 1]
mov dword [ebx + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [ebx + 0x68]
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
jmp 0x5089d3
mov ebx, dword [ebp - 4]
test byte [esi + 0x24], 0x80
jne 0x508aa1
mov ecx, dword [ebx + 0x6c]
cmp dword [ebx + 0x70], ecx
jg 0x5089fa
push dword [ebp - 0x14]
push dword [ebp - 0x30]
push 0
push 0x48
push ebx
call fcn.004d27d0
add esp, 0x14
jmp 0x508a2b
mov edx, dword [ebp - 0x30]
lea eax, [ecx + 1]
mov dword [ebx + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [ebx + 0x68]
mov dword [eax + ecx*4 + 8], edx
mov edx, dword [ebp - 0x14]
mov dword [eax + ecx*4], 0x48
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
cmp dword [ebp + 0x24], 0
je 0x508bbf
mov ecx, dword [ebp + 8]
push 0x10
push edi
push dword [ebp + 0x14]
mov esi, 1
mov dword [ebp - 0x74], 0
push ecx
mov dword [ebp - 0x3c], esi
call fcn.004f0c30
mov edi, dword [ebp - 0x7c]
add esp, 0x10
mov eax, dword [ebp - 0x80]
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0xb4], 0
mov dword [ebp - 0x4c], edi
mov dword [ebp - 0x68], eax
mov ecx, dword [ebp - 8]
test byte [ecx + 0x24], 0x80
jne 0x508d25
mov ecx, dword [ebx + 0x6c]
cmp dword [ebx + 0x70], ecx
jg 0x508c81
push 0
push dword [ebp - 0x14]
push edx
push 0x7f
push ebx
call fcn.004d27d0
mov edx, dword [ebp - 0x14]
add esp, 0x14
jmp 0x508cb2
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp + 8]
movzx edx, word [eax + 0x32]
mov eax, dword [ecx + 0x2c]
mov dword [ebp - 0x78], edx
lea esi, [eax + 1]
inc eax
mov dword [ebp - 0x48], esi
movsx esi, dx
add eax, esi
cmp dword [ebp + 0x24], 0
mov dword [ebp - 0x24], eax
mov dword [ecx + 0x2c], eax
jne 0x508a38
mov edi, ecx
mov eax, dword [edi + 0x28]
mov dword [ebp - 0x40], eax
inc eax
mov dword [edi + 0x28], eax
mov eax, dword [ebp - 0x48]
mov ecx, dword [ebx + 0x6c]
lea edx, [eax - 1]
add edx, esi
cmp dword [ebx + 0x70], ecx
jg 0x508afa
push edx
push eax
push 0
push 0x48
push ebx
call fcn.004d27d0
add esp, 0x14
jmp 0x508b2b
mov edi, dword [ebp - 0x48]
lea eax, [ecx + 1]
mov dword [ebx + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [ebx + 0x68]
mov dword [eax + ecx*4 + 8], edi
mov edi, dword [ebp + 8]
mov dword [eax + ecx*4], 0x48
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [ebx + 0x6c]
mov dword [ebp - 0xa0], ecx
cmp dword [ebx + 0x70], ecx
jg 0x508b52
push 0
push esi
push dword [ebp - 0x40]
push 0x64
push ebx
call fcn.004d27d0
add esp, 0x14
mov dword [ebp - 0xa0], eax
jmp 0x508b80
mov edx, dword [ebp - 0x40]
lea eax, [ecx + 1]
mov dword [ebx + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [ebx + 0x68]
mov dword [eax + ecx*4], 0x64
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], esi
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
push dword [ebp - 0x2c]
mov esi, dword [edi + 8]
push edi
call fcn.004f9e30
mov edx, eax
add esp, 8
test edx, edx
je 0x508bc2
mov eax, dword [esi]
cmp byte [eax + 0x51], 0
je 0x508bab
push edx
push 0xfffffffffffffff7
push eax
call fcn.004cff70
add esp, 0xc
jmp 0x508bc2
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
jmp 0x508bc2
mov edi, dword [ebp + 8]
cmp byte [edi + 0x12], 0
mov eax, 0x1004
jne 0x508beb
cmp dword [ebp - 0x28], 0
jne 0x508beb
cmp dword [ebp - 0x20], 0
jne 0x508beb
cmp byte [ebp - 0x5c], 0
jne 0x508beb
cmp dword [ebp - 0x58], 0
mov ecx, 0x100c
cmove eax, ecx
push dword [ebp - 0x70]
push eax
push 0
push 0
push dword [ebp + 0x14]
push dword [ebp + 0xc]
push edi
call fcn.00517d60
mov ecx, eax
add esp, 0x1c
mov dword [ebp - 0x74], ecx
test ecx, ecx
je 0x509d75
movzx esi, byte [ecx + 0x2e]
mov eax, dword [ecx + 0x14]
mov edi, dword [ecx + 0x18]
mov ecx, dword [ecx + 0x30]
mov edx, dword [ebp - 0x10]
and ecx, 1
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x4c], edi
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0xb4], ecx
cmp esi, 1
je 0x508a6f
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x74]
test eax, eax
cmovne ecx, eax
mov byte [ecx + 0x14], 1
cmp esi, 2
jne 0x508a6f
test edi, edi
js 0x508a6f
cmp edi, edx
je 0x508a6f
mov ecx, dword [ebp - 0x54]
mov eax, edi
sub eax, dword [ebp - 0x88]
cmp byte [eax + ecx], 0
mov eax, 0
cmovne esi, eax
mov dword [ebp - 0x3c], esi
jmp 0x508a6f
mov esi, dword [ebp - 0x3c]
lea eax, [ecx + 1]
mov dword [ebx + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [ebx + 0x68]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [ebp - 0x14]
mov dword [eax + ecx*4], 0x7f
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
test esi, esi
jne 0x508efd
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x64]
mov edi, dword [ebp - 0x60]
inc dword [eax + 0x2c]
mov eax, dword [eax + 0x2c]
mov dword [edi + ecx*4], eax
mov ecx, dword [ebx + 0x6c]
mov edi, dword [ebp - 0x4c]
cmp dword [ebx + 0x70], ecx
jg 0x508cef
push esi
push edx
push dword [ebp - 0x30]
push 0x93
push ebx
call fcn.004d27d0
add esp, 0x14
jmp 0x508efd
mov edx, dword [ebp - 0x30]
lea eax, [ecx + 1]
mov dword [ebx + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [ebx + 0x68]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [ebp - 0x14]
mov dword [eax + ecx*4], 0x93
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
jmp 0x508efd
mov eax, dword [ebp - 0x78]
xor esi, esi
movsx ebx, ax
test ebx, ebx
jle 0x508d5e
mov edi, dword [ebp - 4]
mov eax, dword [ebp - 0x48]
add eax, esi
push eax
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax + 4]
movsx eax, word [eax + esi*2]
push eax
push edx
push ecx
push edi
call fcn.004ee410
mov ecx, dword [ebp - 8]
inc esi
mov edx, dword [ebp - 0x10]
add esp, 0x14
cmp esi, ebx
jl 0x508d34
mov edi, dword [ebp - 0x4c]
mov esi, dword [ebp - 0x3c]
test esi, esi
je 0x508db5
mov ecx, dword [ebp - 0xa0]
test ecx, ecx
je 0x508da4
mov eax, dword [ebp - 4]
mov edx, dword [eax]
cmp byte [edx + 0x51], 0
jne 0x508da4
mov eax, dword [eax + 0x68]
lea ecx, [ecx + ecx*4]
push dword [eax + ecx*4 + 0x10]
lea esi, [eax + ecx*4]
movsx eax, byte [esi + 1]
push eax
push edx
call fcn.004cff70
mov word [esi], 0xad
add esp, 0xc
mov dword [esi + 0x10], 0
mov esi, dword [ebp - 0x3c]
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x94], ebx
mov dword [ebp - 0x24], eax
jmp 0x508efa
push dword [ebp - 0x2c]
push dword [ebp - 0x50]
call fcn.004f80d0
mov ecx, dword [ebp - 4]
add esp, 8
mov esi, eax
mov edx, dword [ecx + 0x6c]
cmp dword [ecx + 0x70], edx
jg 0x508de6
push dword [ebp - 0x24]
push ebx
push dword [ebp - 0x48]
push 0x5b
push ecx
call fcn.004d27d0
add esp, 0x14
mov edx, eax
jmp 0x508e19
mov edi, dword [ebp - 0x48]
lea eax, [edx + 1]
mov dword [ecx + 0x6c], eax
lea ecx, [edx + edx*4]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x68]
mov dword [eax + ecx*4 + 4], edi
mov edi, dword [ebp - 0x24]
mov dword [eax + ecx*4 + 0xc], edi
mov edi, dword [ebp - 0x4c]
mov dword [eax + ecx*4], 0x5b
mov dword [eax + ecx*4 + 8], ebx
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [ebp - 4]
mov eax, dword [ecx]
cmp byte [eax + 0x51], 0
je 0x508e36
cmp ebx, 0xfffffff4
je 0x508e81
push esi
push ebx
push eax
call fcn.004cff70
add esp, 0xc
jmp 0x508e81
test edx, edx
jns 0x508e3e
mov edx, dword [ecx + 0x6c]
dec edx
lea ecx, [edx + edx*4]
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x68]
lea eax, [eax + ecx*4]
test ebx, ebx
jns 0x508e75
cmp byte [eax + 1], 0
jne 0x508e75
cmp ebx, 0xfffffffd
jne 0x508e61
mov dword [eax + 0x10], esi
mov byte [eax + 1], bl
jmp 0x508e81
test esi, esi
je 0x508e81
mov dword [eax + 0x10], esi
mov byte [eax + 1], bl
cmp ebx, 0xfffffff4
jne 0x508e81
inc dword [esi + 0xc]
jmp 0x508e81
push ebx
push esi
push eax
push edx
call fcn.00521450
add esp, 0x10
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x6c]
cmp dword [eax + 0x70], edx
jg 0x508eaa
push dword [ebp - 0x48]
push dword [ebp - 0x24]
push dword [ebp - 0x40]
push 0x83
push eax
call fcn.004d27d0
mov esi, dword [ebp - 4]
add esp, 0x14
mov edx, eax
jmp 0x508ee0
mov esi, dword [ebp - 4]
lea eax, [edx + 1]
mov edi, dword [ebp - 0x40]
lea ecx, [edx + edx*4]
mov dword [esi + 0x6c], eax
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4 + 4], edi
mov edi, dword [ebp - 0x24]
mov dword [eax + ecx*4 + 8], edi
mov edi, dword [ebp - 0x48]
mov dword [eax + ecx*4 + 0xc], edi
mov edi, dword [ebp - 0x4c]
mov dword [eax + ecx*4], 0x83
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esi]
cmp byte [eax + 0x51], 0
jne 0x508ef7
mov eax, dword [esi + 0x68]
lea ecx, [edx + edx*4]
mov byte [eax + ecx*4 + 1], 0xfd
mov dword [eax + ecx*4 + 0x10], ebx
mov esi, dword [ebp - 0x3c]
mov ebx, dword [ebp - 4]
cmp dword [ebp + 0x24], 0
jne 0x509280
cmp esi, 2
je 0x508f17
push dword [ebp - 0x74]
call fcn.0051a630
add esp, 4
mov eax, dword [ebp - 0x8c]
test eax, eax
jne 0x50900d
mov ecx, dword [ebp - 0x3c]
xor esi, esi
test ecx, ecx
je 0x508f52
mov eax, dword [ebp - 0x68]
mov edx, dword [ebp - 0x54]
test eax, eax
js 0x508f42
sub eax, dword [ebp - 0x88]
mov byte [eax + edx], 0
test edi, edi
js 0x508f52
mov eax, edi
sub eax, dword [ebp - 0x88]
mov byte [eax + edx], 0
cmp ecx, 2
jne 0x508fba
mov ecx, dword [ebp - 0x84]
xor eax, eax
test edi, edi
setns al
sub ecx, eax
test ecx, ecx
jle 0x508fba
mov esi, dword [ebx + 0x6c]
cmp dword [ebx + 0x70], esi
jg 0x508f87
push 0
push 0
push 0
push 0x11
push ebx
call fcn.004d27d0
add esp, 0x14
mov esi, eax
jmp 0x508fba
lea eax, [esi + 1]
mov dword [ebx + 0x6c], eax
lea ecx, [esi + esi*4]
mov eax, dword [ebx + 0x68]
mov dword [eax + ecx*4], 0x11
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 [ebp - 8]
push 0
push 0
push dword [ebp - 0x54]
push dword [ebp - 0x88]
push 0
push 0x61
push eax
push dword [ebp + 8]
call fcn.004fbc60
add esp, 0x20
test esi, esi
je 0x509004
mov eax, dword [ebx]
mov edx, dword [ebx + 0x6c]
cmp byte [eax + 0x51], 0
je 0x508ff0
mov eax, 0x5bcde4
jmp 0x509001
test esi, esi
lea eax, [edx - 1]
cmovns eax, esi
lea ecx, [eax + eax*4]
mov eax, dword [ebx + 0x68]
lea eax, [eax + ecx*4]
mov dword [eax + 8], edx
mov eax, dword [ebp - 0x8c]
mov esi, dword [ebp - 0x3c]
test esi, esi
je 0x5090b1
test eax, eax
jne 0x509043
mov eax, dword [ebp - 0x10]
cmp dword [ebp - 0x68], eax
je 0x509043
mov ebx, dword [ebp - 0x34]
cmp edi, eax
mov edi, dword [ebp - 4]
je 0x509049
push dword [ebp - 0x94]
push dword [ebp - 0x24]
push ebx
push eax
push 0x1d
push edi
call fcn.0050aad0
add esp, 0x18
jmp 0x509049
mov ebx, dword [ebp - 0x34]
mov edi, dword [ebp - 4]
cmp esi, 1
je 0x50905a
mov eax, dword [ebp + 8]
dec dword [eax + 0x38]
mov eax, dword [eax + 0x38]
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x2c], 0
mov edx, dword [ebp - 0x14]
cmovne edx, dword [ebp - 0x24]
mov ecx, dword [edi + 0x6c]
cmp dword [edi + 0x70], ecx
jg 0x509081
push 0
push ebx
push edx
push 0x32
push edi
call fcn.004d27d0
add esp, 0x14
jmp 0x509283
lea eax, [ecx + 1]
mov dword [edi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edi + 0x68]
mov dword [eax + ecx*4], 0x32
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], ebx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
jmp 0x509283
cmp dword [ebp - 0x2c], 0
mov edi, dword [ebp - 4]
je 0x5091e5
mov esi, dword [ebp + 8]
dec dword [esi + 0x38]
mov ecx, dword [edi + 0x6c]
mov ebx, dword [esi + 0x38]
mov dword [ebp - 0x44], ebx
cmp dword [edi + 0x70], ecx
jg 0x5090e8
mov edx, dword [ebp - 0x34]
push 0
push edx
push dword [ebp - 0x40]
push 0x25
push edi
call fcn.004d27d0
add esp, 0x14
jmp 0x509119
mov edx, dword [ebp - 0x40]
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 [ebp - 0x34]
mov dword [eax + ecx*4], 0x25
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [edi + 0x6c]
mov dword [ebp - 0x98], ecx
cmp dword [edi + 0x70], ecx
jg 0x509142
push 0
push dword [ebp - 0x24]
push dword [ebp - 0x40]
push 0x7e
push edi
call fcn.004d27d0
add esp, 0x14
mov dword [ebp - 0x98], eax
jmp 0x509173
mov edx, dword [ebp - 0x40]
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 [ebp - 0x24]
mov dword [eax + ecx*4], 0x7e
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov edx, dword [edi + 0x6c]
cmp dword [edi + 0x70], edx
jg 0x509191
push dword [ebp - 0x24]
push ebx
push dword [ebp - 0x10]
push 0x1d
push edi
call fcn.004d27d0
add esp, 0x14
mov edx, eax
jmp 0x5091c1
mov esi, dword [ebp - 0x10]
lea eax, [edx + 1]
mov dword [edi + 0x6c], eax
lea ecx, [edx + edx*4]
mov eax, dword [edi + 0x68]
mov dword [eax + ecx*4 + 8], ebx
mov ebx, dword [ebp - 0x24]
mov dword [eax + ecx*4 + 4], esi
mov esi, dword [ebp + 8]
mov dword [eax + ecx*4], 0x1d
mov dword [eax + ecx*4 + 0xc], ebx
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [edi]
cmp byte [eax + 0x51], 0
jne 0x509286
mov eax, dword [edi + 0x68]
lea ecx, [edx + edx*4]
mov byte [eax + ecx*4 + 1], 0xfd
mov dword [eax + ecx*4 + 0x10], 0
jmp 0x509286
mov ebx, dword [edi + 0x6c]
mov esi, dword [ebp - 0x14]
mov dword [ebp - 0x44], ebx
cmp dword [edi + 0x70], ebx
jg 0x50920d
mov edx, dword [ebp - 0x34]
push esi
push edx
push dword [ebp - 0x30]
push 0x2a
push edi
call fcn.004d27d0
mov ebx, eax
add esp, 0x14
mov dword [ebp - 0x44], ebx
jmp 0x50923a
mov edx, dword [ebp - 0x30]
lea eax, [ebx + 1]
mov dword [edi + 0x6c], eax
lea ecx, [ebx + ebx*4]
mov eax, dword [edi + 0x68]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [ebp - 0x34]
mov dword [eax + ecx*4], 0x2a
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], esi
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [edi + 0x6c]
cmp dword [edi + 0x70], ecx
jg 0x509254
push esi
push ebx
push dword [ebp - 0x10]
push 0x20
push edi
call fcn.004d27d0
add esp, 0x14
jmp 0x509283
mov edx, dword [ebp - 0x10]
lea eax, [ecx + 1]
mov dword [edi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edi + 0x68]
mov dword [eax + ecx*4], 0x20
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], ebx
mov dword [eax + ecx*4 + 0xc], esi
mov dword [eax + ecx*4 + 0x10], 0
jmp 0x509283
mov edi, dword [ebp - 4]
mov esi, dword [ebp + 8]
cmp byte [ebp - 9], 0
je 0x509366
push dword [ebp - 0x38]
mov ebx, dword [ebp - 0x90]
push ebx
push esi
call fcn.004ef560
mov edi, eax
add esp, 0xc
mov eax, dword [ebp - 0x38]
cmp edi, eax
je 0x509317
mov esi, dword [esi + 8]
test esi, esi
je 0x509314
mov edx, dword [ebx + 4]
mov ecx, dword [esi + 0x6c]
and edx, 0x200000
neg edx
sbb edx, edx
add edx, 0x4e
cmp dword [esi + 0x70], ecx
jg 0x5092db
push 0
push eax
push edi
push edx
push esi
call fcn.004d27d0
add esp, 0x14
jmp 0x509311
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov byte [eax + ecx*4], dl
xor edx, edx
mov word [eax + ecx*4 + 2], dx
mov edx, dword [ebp - 0x38]
mov dword [eax + ecx*4 + 4], edi
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov byte [eax + ecx*4 + 1], 0
mov eax, dword [ebp - 0x38]
mov esi, dword [ebp + 8]
mov edi, dword [ebp - 4]
mov ecx, dword [edi + 0x6c]
cmp dword [edi + 0x70], ecx
jg 0x509334
push 0
push 0
push eax
push 0xf
push edi
call fcn.004d27d0
add esp, 0x14
jmp 0x509366
mov edx, dword [ebp - 0x38]
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 [ebp - 0x19], 0
jne 0x5093b2
cmp dword [ebp - 0x20], 0
jne 0x5093b8
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x5094db
xor ebx, ebx
push dword [ebp + 0x18]
push dword [ebp - 8]
push 3
push 0
push dword [ebp + 0x10]
push dword [ebp - 0x28]
push esi
call fcn.00507b70
or ebx, eax
xor ecx, ecx
mov eax, dword [ebp - 8]
add esp, 0x1c
xor esi, esi
mov dword [ebp - 0x78], ebx
cmp cx, word [eax + 0x2a]
jge 0x50947e
xor edi, edi
jmp 0x5093cb
cmp dword [ebp - 0x20], 0
je 0x50937d
push dword [ebp - 8]
push esi
call fcn.004f4240
add esp, 8
mov ebx, eax
jmp 0x50937f
mov eax, dword [ebp - 8]
push esi
push eax
call fcn.00507890
movsx edx, ax
add esp, 8
add edx, dword [ebp - 0x9c]
cmp ebx, 0xffffffff
je 0x509455
cmp esi, 0x20
jge 0x5093f5
mov eax, 1
mov ecx, esi
shl eax, cl
test ebx, eax
jne 0x509455
mov eax, dword [ebp - 8]
mov eax, dword [eax + 4]
test byte [eax + edi + 0x10], 1
jne 0x509455
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x6c]
cmp dword [eax + 0x70], ecx
jg 0x50941c
push 0
push edx
push 0
push 0x48
push eax
call fcn.004d27d0
jmp 0x509465
mov ebx, dword [ebp - 4]
lea eax, [ecx + 1]
lea ecx, [ecx + ecx*4]
mov dword [ebx + 0x6c], eax
mov eax, ebx
mov ebx, dword [ebp - 0x78]
mov eax, dword [eax + 0x68]
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
jmp 0x509468
push edx
push esi
push dword [ebp - 0x10]
push dword [ebp - 8]
push dword [ebp - 4]
call fcn.004ee410
add esp, 0x14
mov eax, dword [ebp - 8]
inc esi
add edi, 0x14
movsx eax, word [eax + 0x2a]
cmp esi, eax
jl 0x5093c8
mov edi, dword [ebp - 4]
cmp byte [ebp - 9], 0
jne 0x5094d8
cmp dword [ebp - 0x2c], 0
jne 0x5094d8
mov ecx, dword [edi + 0x6c]
cmp dword [edi + 0x70], ecx
jg 0x5094a7
push 0
push dword [ebp - 0x38]
push dword [ebp - 0x14]
push 0x4d
push edi
call fcn.004d27d0
add esp, 0x14
jmp 0x5094d8
mov edx, dword [ebp - 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 + 4], edx
mov edx, dword [ebp - 0x38]
mov dword [eax + ecx*4], 0x4d
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 - 0x28]
push dword [ebp + 0x18]
mov ecx, dword [ebp + 0x10]
push dword [ebp - 8]
push 1
push 1
push ecx
push eax
push dword [ebp + 8]
call fcn.00507b70
mov ecx, dword [ebp - 0x6c]
mov edx, eax
mov eax, dword [ebp - 8]
xor edi, edi
add esp, 0x1c
mov dword [ebp - 0x30], edx
xor ebx, ebx
mov esi, ecx
cmp di, word [eax + 0x2a]
mov edi, dword [ebp - 4]
jge 0x50969e
xor ecx, ecx
mov dword [ebp - 0x68], ecx
movsx eax, word [eax + 0x28]
cmp ebx, eax
jne 0x50953e
mov ecx, dword [edi + 0x6c]
cmp dword [edi + 0x70], ecx
jg 0x50962e
push 0
push esi
push 0
push 0x48
push edi
call fcn.004d27d0
jmp 0x509677
mov eax, dword [ebp - 8]
mov eax, dword [eax + 4]
movzx eax, word [eax + ecx + 0x10]
test al, 0x60
je 0x50955c
test al, 0x20
lea eax, [esi - 1]
cmove eax, esi
mov esi, eax
jmp 0x50967d
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + ebx*4]
test eax, eax
js 0x509604
mov ecx, dword [ebp + 0x10]
lea eax, [eax + eax*4]
mov edi, dword [ebp + 8]
push esi
mov eax, dword [ecx + eax*4 + 4]
push eax
push edi
mov dword [ebp - 0x9c], eax
call fcn.004ef560
add esp, 0xc
mov dword [ebp - 0x78], eax
cmp eax, esi
je 0x50967a
mov edi, dword [edi + 8]
test edi, edi
je 0x50967a
mov edx, dword [ebp - 0x9c]
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 0x5095cc
push 0
push esi
push eax
push edx
push edi
call fcn.004d27d0
jmp 0x509677
lea eax, [ecx + 1]
mov dword [edi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edi + 0x68]
mov byte [eax + ecx*4], dl
xor edx, edx
mov word [eax + ecx*4 + 2], dx
mov edx, dword [ebp - 0x78]
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], esi
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov byte [eax + ecx*4 + 1], 0
jmp 0x50967a
test dword [ebp - 0xa4], 1
je 0x50965f
cmp ebx, 0x1f
jg 0x50965f
mov eax, 1
mov ecx, ebx
shl eax, cl
test edx, eax
jne 0x50965f
mov ecx, dword [edi + 0x6c]
cmp dword [edi + 0x70], ecx
jle 0x50952c
lea eax, [ecx + 1]
mov dword [edi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edi + 0x68]
mov dword [eax + ecx*4], 0x48
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 0x50967d
push esi
push ebx
push dword [ebp - 0x10]
push dword [ebp - 8]
push edi
call fcn.004ee410
mov dword [ebp - 0xb4], 0
add esp, 0x14
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp - 8]
inc ebx
add dword [ebp - 0x68], 0x14
inc esi
mov ecx, dword [ebp - 0x68]
mov edi, dword [ebp - 4]
movsx eax, word [eax + 0x2a]
cmp ebx, eax
mov eax, dword [ebp - 8]
jl 0x509518
mov ecx, dword [ebp - 0x6c]
test byte [eax + 0x24], 0x60
je 0x5096b4
push eax
push ecx
push dword [ebp + 8]
call fcn.004ea240
mov eax, dword [ebp - 8]
add esp, 0xc
test byte [ebp - 0xa4], 1
je 0x50985f
push dword [ebp - 0x6c]
mov ebx, dword [ebp - 4]
push eax
push ebx
call fcn.00507780
mov eax, dword [ebp - 0x28]
add esp, 0xc
mov edi, dword [ebp - 0x44]
mov esi, eax
test eax, eax
je 0x50971c
mov ebx, dword [ebp - 8]
cmp byte [esi + 8], 0x7f
jne 0x509712
cmp byte [esi + 9], 1
jne 0x509712
push dword [ebp + 0x10]
push dword [esi + 0x10]
call fcn.004c4d10
add esp, 8
test eax, eax
je 0x509712
push edi
push dword [ebp + 0x18]
push dword [ebp - 0x14]
push ebx
push esi
push dword [ebp + 8]
call fcn.004e95e0
add esp, 0x18
mov esi, dword [esi + 0x20]
test esi, esi
jne 0x5096e0
mov ebx, dword [ebp - 4]
cmp dword [ebp - 0x2c], 0
mov edx, dword [ebx + 0x6c]
mov eax, dword [ebx + 0x70]
je 0x5097c8
cmp eax, edx
jg 0x509746
push dword [ebp - 0x24]
push edi
push dword [ebp - 0x10]
push 0x1d
push ebx
call fcn.004d27d0
add esp, 0x14
mov edx, eax
jmp 0x509773
mov esi, dword [ebp - 0x10]
lea eax, [edx + 1]
mov dword [ebx + 0x6c], eax
lea ecx, [edx + edx*4]
mov eax, dword [ebx + 0x68]
mov dword [eax + ecx*4 + 4], esi
mov esi, dword [ebp - 0x24]
mov dword [eax + ecx*4], 0x1d
mov dword [eax + ecx*4 + 8], edi
mov dword [eax + ecx*4 + 0xc], esi
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [ebx]
cmp byte [eax + 0x51], 0
jne 0x509790
mov eax, dword [ebx + 0x68]
lea ecx, [edx + edx*4]
mov edx, dword [ebp - 0x94]
mov byte [eax + ecx*4 + 1], 0xfd
mov dword [eax + ecx*4 + 0x10], edx
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebp - 8]
xor ebx, ebx
mov eax, dword [ebp - 0x6c]
xor esi, esi
mov edi, eax
cmp bx, word [ecx + 0x2a]
jge 0x509849
nop dword [eax]
mov eax, dword [ecx + 4]
movzx eax, word [ebx + eax + 0x10]
test al, 0x60
je 0x50980f
test al, 0x20
lea eax, [edi - 1]
cmove eax, edi
mov edi, eax
jmp 0x509832
cmp eax, edx
jg 0x5097e0
push dword [ebp - 0x14]
push edi
push dword [ebp - 0x10]
push 0x20
push ebx
call fcn.004d27d0
add esp, 0x14
jmp 0x509790
mov esi, dword [ebp - 0x14]
lea eax, [edx + 1]
mov dword [ebx + 0x6c], eax
lea ecx, [edx + edx*4]
mov eax, dword [ebx + 0x68]
mov edx, dword [ebp - 0x10]
mov dword [eax + ecx*4], 0x20
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], edi
mov dword [eax + ecx*4 + 0xc], esi
mov dword [eax + ecx*4 + 0x10], 0
jmp 0x509793
mov eax, dword [ebp - 0x18]
cmp dword [eax + esi*4], 0
jge 0x509832
movsx eax, word [ecx + 0x28]
cmp esi, eax
je 0x509832
push edi
push esi
push edx
push ecx
push dword [ebp - 4]
call fcn.004ee410
mov ecx, dword [ebp - 8]
add esp, 0x14
movsx eax, word [ecx + 0x2a]
inc esi
mov edx, dword [ebp - 0x10]
add ebx, 0x14
inc edi
cmp esi, eax
jl 0x5097b0
mov eax, dword [ebp - 0x6c]
test byte [ecx + 0x24], 0x60
mov esi, dword [ebp + 8]
je 0x509865
push ecx
push eax
push esi
call fcn.004ea240
add esp, 0xc
jmp 0x509862
mov esi, dword [ebp + 8]
mov ecx, dword [ebp - 8]
cmp dword [ebp - 0x8c], 0
mov ebx, dword [ebp - 0x44]
jne 0x509acc
push 0
push dword [ebp - 0x18]
mov edi, dword [ebp - 0x10]
lea eax, [ebp - 0x58]
push eax
push ebx
push dword [ebp + 0x18]
push dword [ebp - 0x5c]
push dword [ebp - 0x14]
push dword [ebp - 0x38]
push dword [ebp - 0x70]
push edi
push dword [ebp - 0x60]
push ecx
push esi
call fcn.004f44f0
add esp, 0x34
cmp dword [ebp - 0x58], 0
jne 0x5098af
cmp byte [ebp - 0x5c], 0
je 0x509964
cmp dword [ebp - 0x2c], 0
mov esi, dword [ebp - 4]
mov edx, dword [esi + 0x6c]
mov eax, dword [esi + 0x70]
je 0x509922
cmp eax, edx
jg 0x5098d6
push dword [ebp - 0x24]
push ebx
push edi
push 0x1d
push esi
call fcn.004d27d0
add esp, 0x14
mov edx, eax
jmp 0x509903
mov ebx, dword [ebp - 0x44]
lea eax, [edx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [edx + edx*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4 + 4], edi
mov edi, dword [ebp - 0x24]
mov dword [eax + ecx*4], 0x1d
mov dword [eax + ecx*4 + 8], ebx
mov dword [eax + ecx*4 + 0xc], edi
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esi]
cmp byte [eax + 0x51], 0
jne 0x509967
mov eax, dword [esi + 0x68]
lea ecx, [edx + edx*4]
mov edx, dword [ebp - 0x94]
mov byte [eax + ecx*4 + 1], 0xfd
mov dword [eax + ecx*4 + 0x10], edx
jmp 0x509967
cmp eax, edx
jg 0x509938
push dword [ebp - 0x14]
push ebx
push edi
push 0x20
push esi
call fcn.004d27d0
add esp, 0x14
jmp 0x509967
lea eax, [edx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [edx + edx*4]
mov eax, dword [esi + 0x68]
mov edx, dword [ebp - 0x14]
mov dword [eax + ecx*4], 0x20
mov dword [eax + ecx*4 + 4], edi
mov dword [eax + ecx*4 + 8], ebx
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
jmp 0x50996a
mov esi, dword [ebp - 4]
mov edx, dword [ebp - 0x14]
mov edi, dword [ebp - 0x20]
test edi, edi
je 0x50998b
push dword [ebp - 0xa8]
push dword [ebp - 0x18]
push 0
push edx
push dword [ebp - 8]
push dword [ebp + 8]
call fcn.004f3710
add esp, 0x18
push 0xffffffffffffffff
push dword [ebp - 0x60]
push dword [ebp - 0x70]
push dword [ebp - 0x10]
push dword [ebp - 8]
push dword [ebp + 8]
call fcn.004f6a80
add esp, 0x18
cmp dword [ebp - 0xb4], 0
je 0x5099ca
mov ecx, dword [esi + 0x6c]
cmp dword [esi + 0x70], ecx
jg 0x5099f6
push 0
push 0
push dword [ebp - 0x10]
push 0x87
push esi
call fcn.004d27d0
add esp, 0x14
mov edx, dword [ebp - 0x10]
cmp edi, 1
jg 0x5099dc
cmp byte [ebp - 0x5c], 0
je 0x509a59
mov ecx, dword [esi + 0x6c]
cmp dword [esi + 0x70], ecx
jg 0x509a2a
push 0
push 0
push edx
push 0x7a
push esi
call fcn.004d27d0
add esp, 0x14
jmp 0x509a59
mov edx, dword [ebp - 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], 0x87
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
jmp 0x5099cd
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4], 0x7a
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 esi, dword [ebp - 8]
test edi, edi
je 0x509a7a
push dword [ebp - 0xa8]
push dword [ebp - 0x18]
push dword [ebp - 0x38]
push 0
push esi
push dword [ebp + 8]
call fcn.004f3710
add esp, 0x18
mov edi, dword [ebp - 0x3c]
xor eax, eax
push 0
cmp edi, 2
push 0
sete al
lea eax, [eax*2 + 4]
push eax
push dword [ebp - 0x60]
push dword [ebp - 0x38]
push dword [ebp - 0x70]
push dword [ebp - 0x10]
push esi
push dword [ebp + 8]
call fcn.004ea020
add esp, 0x24
cmp dword [ebp - 0x20], 0
je 0x509acf
push dword [ebp - 0xa8]
push dword [ebp - 0x18]
push dword [ebp - 0x14]
push dword [ebp + 0x10]
push esi
push dword [ebp + 8]
call fcn.004f3680
add esp, 0x18
jmp 0x509acf
mov edi, dword [ebp - 0x3c]
mov edx, dword [ebp - 0xac]
mov esi, dword [ebp - 4]
test edx, edx
je 0x509b28
mov ecx, dword [esi + 0x6c]
cmp dword [esi + 0x70], ecx
jg 0x509af6
push 0
push 1
push edx
push 0x52
push esi
call fcn.004d27d0
add esp, 0x14
jmp 0x509b28
mov ebx, dword [ebp - 0x44]
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 eax, dword [ebp - 0x28]
test eax, eax
je 0x509b7a
mov edi, dword [ebp - 8]
mov esi, dword [ebp + 8]
cmp byte [eax + 8], 0x7f
jne 0x509b6a
cmp byte [eax + 9], 2
jne 0x509b6a
push dword [ebp + 0x10]
push dword [eax + 0x10]
call fcn.004c4d10
add esp, 8
test eax, eax
je 0x509b67
push ebx
push dword [ebp + 0x18]
push dword [ebp - 0x14]
push edi
push dword [ebp - 0x28]
push esi
call fcn.004e95e0
add esp, 0x18
mov eax, dword [ebp - 0x28]
mov eax, dword [eax + 0x20]
mov dword [ebp - 0x28], eax
test eax, eax
jne 0x509b35
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 0x3c]
cmp edi, 1
je 0x509c82
cmp edi, 2
jne 0x509bc9
mov ecx, dword [esi + 0xc]
not ebx
mov eax, dword [ecx + 0x3c]
add eax, dword [ecx + 0x38]
jns 0x509bb0
push ebx
push esi
push ecx
call fcn.004dea90
add esp, 0xc
push dword [ebp - 0x74]
call fcn.0051a630
add esp, 4
jmp 0x509c82
mov ecx, dword [ecx + 0x40]
mov eax, dword [esi + 0x6c]
push dword [ebp - 0x74]
mov dword [ecx + ebx*4], eax
call fcn.0051a630
add esp, 4
jmp 0x509c82
cmp dword [ebp - 0x2c], 0
je 0x509c39
mov ecx, dword [esi + 0xc]
not ebx
mov eax, dword [ecx + 0x3c]
add eax, dword [ecx + 0x38]
jns 0x509be9
push ebx
push esi
push ecx
call fcn.004dea90
add esp, 0xc
jmp 0x509bf2
mov ecx, dword [ecx + 0x40]
mov eax, dword [esi + 0x6c]
mov dword [ecx + ebx*4], eax
mov ecx, dword [esi + 0x6c]
cmp dword [esi + 0x70], ecx
jg 0x509c13
mov edx, dword [ebp - 0x98]
push 0
push edx
push dword [ebp - 0x40]
push 5
push esi
call fcn.004d27d0
add esp, 0x14
jmp 0x509c82
mov edx, dword [ebp - 0x40]
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 - 0x98]
mov dword [eax + ecx*4], 5
mov dword [eax + ecx*4 + 8], edx
jmp 0x509c72
mov ecx, dword [esi + 0x6c]
cmp dword [esi + 0x70], ecx
jg 0x509c53
push 0
push ebx
push 0
push 0xb
push esi
call fcn.004d27d0
add esp, 0x14
jmp 0x509c82
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], ebx
mov dword [eax + ecx*4 + 0x10], 0
mov dword [eax + ecx*4 + 0xc], 0
mov ecx, dword [esi + 0xc]
mov edx, dword [ebp - 0x34]
not edx
mov eax, dword [ecx + 0x3c]
add eax, dword [ecx + 0x38]
jns 0x509c9f
push edx
push esi
push ecx
call fcn.004dea90
add esp, 0xc
jmp 0x509ca8
mov ecx, dword [ecx + 0x40]
mov eax, dword [esi + 0x6c]
mov dword [ecx + edx*4], eax
mov eax, dword [ebp + 8]
cmp byte [eax + 0x12], 0
jne 0x509ccc
cmp dword [eax + 0x78], 0
jne 0x509ccc
cmp dword [ebp + 0x24], 0
jne 0x509ccc
cmp dword [eax + 0x70], 0
je 0x509ccc
push eax
call fcn.004c1010
add esp, 4
mov edx, dword [ebp - 0xac]
test edx, edx
je 0x509d75
mov ecx, dword [esi + 0x6c]
cmp dword [esi + 0x70], ecx
jg 0x509cf4
push 0
push 1
push edx
push 0x50
push esi
call fcn.004d27d0
add esp, 0x14
jmp 0x509d23
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4], 0x50
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
push 1
push esi
call fcn.005157d0
mov eax, dword [esi]
add esp, 8
cmp byte [eax + 0x51], 0
jne 0x509d75
mov esi, dword [esi + 0x74]
mov eax, 0x2400
test word [esi + 8], ax
jne 0x509d4a
cmp dword [esi + 0x18], 0
je 0x509d53
push esi
call fcn.00522250
add esp, 4
mov eax, 0xa02
mov dword [esi + 0x10], str.rows_updated
mov dword [esi + 0x24], 0
mov dword [esi + 0xc], 0xc
mov word [esi + 8], ax
mov byte [esi + 0xa], 1
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0xb0]
test eax, eax
je 0x508584
mov ecx, dword [ebp - 0x7c]
mov dword [eax + 0xf0], ecx
jmp 0x508584
cmp edi, dword [eax + 0x14c]
jae 0x509dd2
cmp edi, dword [eax + 0x144]
jb 0x509db7
mov eax, dword [eax + 0x140]
mov dword [edi], eax
mov eax, dword [ebp - 0x50]
mov dword [eax + 0x140], edi
jmp 0x509e27
cmp edi, dword [eax + 0x148]
jb 0x509dd2
mov eax, dword [eax + 0x138]
mov dword [edi], eax
mov eax, dword [ebp - 0x50]
mov dword [eax + 0x138], edi
jmp 0x509e27
cmp dword [0x5b6c38], 0
je 0x509e1d
mov eax, dword [0x5bccc0]
test eax, eax
je 0x509dee
push eax
call dword [0x5b6c88]
add esp, 4
push edi
call dword [0x5b6c64]
sub dword [0x5bcc60], eax
dec dword [0x5bcc84]
push edi
call dword [0x5b6c5c]
mov eax, dword [0x5bccc0]
add esp, 8
test eax, eax
je 0x509e27
push eax
call dword [0x5b6c90]
jmp 0x509e24
push edi
call dword [0x5b6c5c]
add esp, 4
mov ebx, dword [ebp + 0x14]
push dword [ebp + 0xc]
mov edi, dword [ebp - 0x50]
push edi
call fcn.00506880
mov eax, dword [ebp + 0x10]
add esp, 8
test eax, eax
je 0x509e4a
push eax
push edi
call fcn.004cd3d0
add esp, 8
test ebx, ebx
je 0x509e58
push ebx
push edi
call fcn.004f0920
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret