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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xcc
push ebx
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
push esi
push edi
xor edi, edi
mov dword [esp + 0xa0], edi
mov dword [esp + 0x40], edi
mov dword [esp + 0x7c], edi
mov dword [esp + 0x68], edi
mov dword [esp + 0x80], edi
mov dword [esp + 0x4c], edi
mov dword [esp + 0x60], edi
mov dword [esp + 0xb4], edi
mov dword [esp + 0x64], edi
mov dword [esp + 0xa4], edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x54], edi
mov dword [esp + 0x84], edi
mov dword [esp + 0x98], edi
mov dword [esp + 0x78], edi
mov dword [esp + 0x48], edi
mov dword [esp + 0xac], edi
mov dword [esp + 0xb0], edi
mov dword [esp + 0x5c], eax
cmp dword [ebx + 0x24], edi
jne 0x4d5741
cmp byte [eax + 0x49], 0
jne 0x4d5741
mov ecx, dword [ebp + 0xc]
mov eax, ebx
call fcn.004b9610
mov esi, eax
mov dword [esp + 0x18], esi
cmp esi, edi
je 0x4d5741
mov ecx, dword [esi + 0x48]
mov dword [esp + 0x2c], 0xfff0bdc0
cmp ecx, edi
je 0x4d420c
mov eax, dword [ebx]
mov eax, dword [eax + 0x10]
xor edx, edx
mov dword [esp + 0x2c], edx
cmp dword [eax + 0xc], ecx
je 0x4d420c
mov eax, dword [ebx]
mov eax, dword [eax + 0x10]
add eax, 0xc
lea esp, [esp]
add eax, 0x10
inc edx
cmp dword [eax], ecx
jne 0x4d4200
mov dword [esp + 0x2c], edx
mov edx, dword [ebp + 0x10]
lea ecx, [esp + 0x9c]
push ecx
push edx
push 0x76
mov edx, esi
mov eax, ebx
call fcn.004d3670
mov dword [esp + 0x5c], eax
xor eax, eax
add esp, 0xc
cmp dword [esi + 0xc], edi
push esi
setne al
mov dword [esp + 0x78], eax
mov eax, ebx
call fcn.004b56b0
add esp, 4
test eax, eax
jne 0x4d5741
mov ecx, dword [esp + 0x9c]
push ecx
mov ecx, esi
mov eax, ebx
call fcn.004b9680
add esp, 4
test eax, eax
jne 0x4d5741
mov edx, dword [ebx + 0x28]
mov dword [esp + 0x24], edx
mov dword [esp + 0x70], edx
inc edx
mov dword [ebx + 0x28], edx
test byte [esi + 0x24], 0x20
mov dword [esp + 0x6c], edx
jne 0x4d4284
mov dword [esp + 0x34], edi
jmp 0x4d428f
mov eax, esi
call fcn.004b36a0
mov dword [esp + 0x34], eax
mov eax, dword [esi + 8]
xor edi, edi
mov dword [esp + 0x90], edi
test eax, eax
je 0x4d42bd
nop
cmp dword [esp + 0x34], eax
jne 0x4d42aa
mov dword [esp + 0x24], edx
inc edx
mov dword [ebx + 0x28], edx
mov eax, dword [eax + 0x14]
inc edi
test eax, eax
jne 0x4d42a0
mov dword [esp + 0x90], edi
mov eax, dword [ebp + 0x1c]
test eax, eax
je 0x4d42d9
mov edx, dword [eax + 0x1c]
mov eax, dword [eax + 0x20]
mov ecx, dword [esp + 0x70]
mov dword [esp + 0x24], edx
mov dword [esp + 0x6c], eax
mov dword [ebx + 0x28], ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [esp + 0x24]
mov dword [edx + 0x34], eax
movsx ecx, word [esi + 0x2a]
mov eax, dword [esp + 0x5c]
add ecx, edi
lea edx, [edi + ecx*4 + 2]
push 0
push edx
call fcn.004754b0
add esp, 8
mov dword [esp + 0x40], eax
test eax, eax
je 0x4d5741
movsx eax, word [esi + 0x2a]
mov ecx, dword [esp + 0x40]
lea eax, [ecx + eax*4]
lea ecx, [eax + edi*4]
mov dword [esp + 0x94], eax
lea eax, [edi + 1]
push eax
push 1
push ecx
mov dword [esp + 0x64], ecx
mov dword [esp + 0x44], eax
call fcn.004f0a6a
mov edx, dword [esp + 0x64]
xor ecx, ecx
add esp, 0xc
mov byte [edx + edi + 1], 0
xor eax, eax
cmp cx, word [esi + 0x2a]
jge 0x4d4360
mov ecx, dword [esp + 0x40]
jmp 0x4d4350
mov dword [ecx + eax*4], 0xffffffff
movsx edx, word [esi + 0x2a]
inc eax
cmp eax, edx
jl 0x4d4350
mov ecx, dword [ebp + 0x1c]
xor eax, eax
mov dword [esp + 0xb8], eax
mov dword [esp + 0xbc], eax
mov dword [esp + 0xc0], eax
mov dword [esp + 0xd0], eax
mov dword [esp + 0xc4], eax
mov dword [esp + 0xc8], eax
mov dword [esp + 0xcc], eax
mov dword [esp + 0xd4], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0xbc], eax
mov eax, dword [ebp + 0x10]
cmp dword [eax], 0
mov edx, 0x200
mov dword [esp + 0xb8], ebx
mov dword [esp + 0xc0], ecx
mov word [esp + 0xd0], dx
mov byte [esp + 0x23], 0
mov byte [esp + 0x17], 0
mov dword [esp + 0x10], 0
jle 0x4d4554
add eax, 4
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x30]
mov ecx, dword [eax]
push ecx
lea edi, [esp + 0xbc]
call fcn.004a6b90
add esp, 4
test eax, eax
jne 0x4d5741
movsx eax, word [esi + 0x2a]
xor edi, edi
test eax, eax
jle 0x4d4483
mov edx, dword [esp + 0x30]
mov eax, dword [edx + 4]
mov dword [esp + 0x44], eax
mov eax, dword [esi + 4]
mov dword [esp + 0x3c], eax
mov ecx, dword [esp + 0x3c]
mov eax, dword [esp + 0x44]
mov ecx, dword [ecx]
call fcn.00478290
test eax, eax
je 0x4d4444
movsx eax, word [esi + 0x2a]
add dword [esp + 0x3c], 0x10
inc edi
cmp edi, eax
jl 0x4d4421
jmp 0x4d4483
movsx edx, word [esi + 0x28]
cmp edi, edx
jne 0x4d445d
mov eax, dword [esp + 0x30]
mov ecx, dword [eax]
mov byte [esp + 0x17], 1
mov dword [esp + 0x7c], ecx
jmp 0x4d4478
cmp dword [esp + 0x34], 0
je 0x4d4478
mov eax, dword [esi + 4]
mov edx, edi
shl edx, 4
test byte [edx + eax + 0xf], 1
je 0x4d4478
mov byte [esp + 0x23], 1
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x10]
mov dword [eax + edi*4], ecx
movsx edx, word [esi + 0x2a]
cmp edi, edx
jl 0x4d44ea
cmp dword [esp + 0x34], 0
jne 0x4d4572
mov eax, dword [esp + 0x30]
mov edi, dword [eax + 4]
mov eax, str._ROWID_
mov ecx, edi
call fcn.00478290
test eax, eax
je 0x4d44d1
mov eax, str.ROWID
mov ecx, edi
call fcn.00478290
test eax, eax
je 0x4d44d1
mov eax, 0x516684
mov ecx, edi
call fcn.00478290
test eax, eax
jne 0x4d4572
mov ecx, dword [esp + 0x30]
mov edx, dword [ecx]
or edi, 0xffffffff
mov byte [esp + 0x17], 1
mov dword [esp + 0x7c], edx
mov eax, str.ROWID
jmp 0x4d4500
test edi, edi
jge 0x4d44f5
mov eax, str.ROWID
jmp 0x4d4500
mov ecx, dword [esi + 4]
mov eax, edi
shl eax, 4
mov eax, dword [eax + ecx]
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x5c]
mov ecx, dword [ecx + 0x10]
shl edx, 4
mov edx, dword [edx + ecx]
push edx
push eax
mov eax, dword [esi]
push eax
push 0x17
mov eax, ebx
call fcn.004b2480
add esp, 0x10
cmp eax, 1
je 0x4d5741
cmp eax, 2
jne 0x4d453b
mov ecx, dword [esp + 0x40]
mov dword [ecx + edi*4], 0xffffffff
mov eax, dword [esp + 0x10]
mov edx, dword [ebp + 0x10]
add dword [esp + 0x30], 0x18
inc eax
cmp eax, dword [edx]
mov dword [esp + 0x10], eax
jl 0x4d43e7
mov al, byte [esp + 0x23]
add al, byte [esp + 0x17]
cmp dword [esi + 0x38], 0
mov edi, dword [esp + 0x40]
mov byte [esp + 0x30], al
je 0x4d4599
or ecx, 0xffffffff
or edx, 0xffffffff
jmp 0x4d459d
mov eax, dword [esp + 0x10]
mov ecx, dword [ebp + 0x10]
lea eax, [eax + eax*2]
mov edx, dword [ecx + eax*8 + 8]
push edx
push str.no_such_column:__s
mov esi, ebx
call fcn.00478120
add esp, 8
mov byte [ebx + 0x11], 1
jmp 0x4d5741
xor ecx, ecx
xor edx, edx
mov eax, dword [ebp + 0xc]
mov dword [eax + 0x40], ecx
mov dword [eax + 0x44], edx
movzx eax, byte [esp + 0x30]
push eax
mov dword [esp + 0xac], eax
push esi
mov ecx, edi
mov eax, ebx
call fcn.004bf0b0
mov esi, dword [esi + 8]
add esp, 8
mov dword [esp + 0x3c], eax
mov dword [esp + 0x1c], 0
test esi, esi
je 0x4d4694
cmp byte [esp + 0x30], 0
jne 0x4d4656
cmp dword [esp + 0x3c], 1
jg 0x4d4656
cmp dword [esi + 0x24], 0
jne 0x4d4656
cmp esi, dword [esp + 0x34]
je 0x4d4656
movzx edx, word [esi + 0x32]
xor eax, eax
xor ecx, ecx
test edx, edx
jle 0x4d4669
mov edx, dword [esi + 4]
mov dword [esp + 0x10], edx
mov edx, dword [esp + 0x10]
movzx edx, word [edx]
test dx, dx
jl 0x4d4629
movsx edx, dx
cmp dword [edi + edx*4], 0
jge 0x4d4629
movzx edx, word [esi + 0x32]
add dword [esp + 0x10], 2
inc ecx
cmp ecx, edx
jl 0x4d4604
jmp 0x4d4669
mov edx, 1
add dword [ebx + 0x2c], edx
movzx ecx, word [esi + 0x34]
mov eax, dword [ebx + 0x2c]
add ecx, eax
mov dword [ebx + 0x2c], ecx
mov ecx, dword [ebp + 0x18]
cmp ecx, 5
je 0x4d4650
cmp ecx, 0xb
jne 0x4d4665
cmp byte [esi + 0x36], 5
jne 0x4d4665
mov dword [esp + 0x64], edx
jmp 0x4d4665
inc dword [ebx + 0x2c]
movzx edx, word [esi + 0x34]
mov eax, dword [ebx + 0x2c]
add edx, eax
mov dword [ebx + 0x2c], edx
test eax, eax
jne 0x4d4676
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x58]
mov byte [ecx + edx + 1], 0
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x94]
mov dword [edx + ecx*4], eax
mov esi, dword [esi + 0x14]
inc ecx
mov dword [esp + 0x1c], ecx
test esi, esi
jne 0x4d45d7
cmp dword [esp + 0x64], 0
je 0x4d46af
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x58]
push eax
push 1
push ecx
call fcn.004f0a6a
add esp, 0xc
mov eax, dword [ebx + 8]
test eax, eax
je 0x4d46be
mov ebx, eax
mov dword [esp + 0x38], ebx
jmp 0x4d46db
cmp dword [ebx + 0x74], 0
jne 0x4d46d0
mov edx, dword [ebx]
test byte [edx + 0x44], 8
jne 0x4d46d0
mov byte [ebx + 0x17], 1
call fcn.00493d60
mov dword [esp + 0x38], eax
mov ebx, eax
test ebx, ebx
je 0x4d5741
mov esi, dword [ebp + 8]
cmp byte [esi + 0x12], 0
jne 0x4d46f3
or dword [ebx + 0x94], 0x20
cmp dword [esp + 0x50], 0
jne 0x4d4709
cmp dword [esp + 0x3c], 0
mov dword [esp + 0x1c], 0
je 0x4d4711
mov dword [esp + 0x1c], 1
mov ecx, dword [esi + 0x74]
test ecx, ecx
je 0x4d4720
mov eax, ecx
mov dword [esp + 0x44], eax
jmp 0x4d4726
mov eax, esi
mov dword [esp + 0x44], esi
mov dword [esp + 0x10], ecx
test ecx, ecx
jne 0x4d4732
mov dword [esp + 0x10], esi
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx + 0x54]
mov ecx, dword [esp + 0x2c]
mov edi, 1
shl edi, cl
test edi, edx
jne 0x4d4763
mov ecx, dword [esp + 0x10]
or edx, edi
cmp dword [esp + 0x2c], 1
mov dword [ecx + 0x54], edx
jne 0x4d4763
mov eax, ecx
call fcn.004b81f0
mov eax, dword [esp + 0x44]
mov dl, byte [esp + 0x1c]
mov ecx, dword [esp + 0x18]
or dword [eax + 0x50], edi
or byte [eax + 0x14], dl
cmp dword [ecx + 0x38], 0
jne 0x4d47e8
mov eax, dword [esi + 0x2c]
inc eax
mov dword [esp + 0x78], eax
inc eax
cmp byte [esp + 0x23], 0
mov dword [esi + 0x2c], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x28], eax
jne 0x4d47a0
cmp dword [esp + 0x50], 0
jne 0x4d47a0
cmp dword [esp + 0x3c], 0
je 0x4d47b3
lea edx, [eax + 1]
mov dword [esp + 0x98], edx
movsx edx, word [ecx + 0x2a]
add edx, eax
mov dword [esi + 0x2c], edx
cmp byte [esp + 0x30], 0
jne 0x4d47c8
cmp dword [esp + 0x50], 0
jne 0x4d47c8
cmp dword [esp + 0x3c], 0
je 0x4d47d2
inc dword [esi + 0x2c]
mov eax, dword [esi + 0x2c]
mov dword [esp + 0x54], eax
mov eax, dword [esi + 0x2c]
lea edx, [eax + 1]
mov dword [esp + 0x84], edx
movsx edx, word [ecx + 0x2a]
add edx, eax
mov dword [esi + 0x2c], edx
cmp dword [esp + 0x74], 0
je 0x4d4822
mov eax, dword [esi + 0xec]
mov edx, dword [ecx]
mov dword [esp + 0xac], eax
mov eax, dword [esp + 0x24]
push eax
push 0
mov dword [esi + 0xec], edx
mov edx, dword [ebp + 0x14]
push 0
push edx
push ecx
push esi
mov dword [esp + 0xc8], esi
call fcn.004b9700
add esp, 0x18
mov eax, dword [ebp + 0x14]
push eax
lea edi, [esp + 0xbc]
call fcn.004a6b90
add esp, 4
test eax, eax
jne 0x4d5741
mov eax, dword [esp + 0x18]
cmp dword [eax + 0x38], 0
je 0x4d4873
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp + 0x14]
push ecx
mov ecx, dword [esp + 0x44]
push edx
mov edx, dword [esp + 0x84]
push ecx
mov ecx, dword [ebp + 0x10]
push edx
mov edx, dword [ebp + 0xc]
push ecx
push eax
push edx
push esi
call fcn.004d5830
add esp, 0x20
jmp 0x4d5741
mov ecx, dword [ebx + 0xc]
mov eax, dword [ecx + 0x3c]
lea edx, [eax + 1]
mov dword [ecx + 0x3c], edx
lea edx, [eax - 1]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x44], eax
test eax, edx
jne 0x4d48b9
lea ecx, [eax*8 + 4]
mov eax, dword [esp + 0x2c]
mov edi, dword [eax + 0x40]
mov esi, dword [eax]
push 0
push ecx
call fcn.00475660
mov edx, dword [esp + 0x34]
mov esi, dword [ebp + 8]
mov dword [edx + 0x40], eax
mov eax, dword [esp + 0x4c]
add esp, 8
mov ecx, edx
mov ecx, dword [ecx + 0x40]
test ecx, ecx
je 0x4d48c7
mov dword [ecx + eax*4], 0xffffffff
or ecx, 0xffffffff
sub ecx, eax
mov eax, dword [esp + 0x5c]
test byte [eax + 0x1c], 0x80
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x10], ecx
je 0x4d490e
cmp dword [esi + 0x78], 0
jne 0x4d490e
cmp byte [esi + 0x12], 0
jne 0x4d490e
mov edi, dword [ebp + 0x1c]
test edi, edi
jne 0x4d4911
inc dword [esi + 0x2c]
mov eax, dword [esi + 0x2c]
push edi
push eax
push edi
push 0x46
push ebx
mov dword [esp + 0xb8], eax
call fcn.00493fe0
add esp, 0x14
jmp 0x4d4911
mov edi, dword [ebp + 0x1c]
mov ecx, dword [esp + 0x18]
test byte [ecx + 0x24], 0x20
jne 0x4d496a
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x78]
push edx
push eax
push 0
push 0x49
push ebx
call fcn.00493fe0
add esp, 0x14
test edi, edi
je 0x4d49e5
mov ecx, dword [esp + 0x2c]
mov edx, dword [ebp + 0x14]
push 0x10
push ecx
push edx
push esi
mov dword [esp + 0x54], 0
mov dword [esp + 0x2c], 1
call fcn.004ace40
mov edi, dword [esp + 0x9c]
add esp, 0x10
jmp 0x4d4a8f
mov ecx, dword [esp + 0x34]
movzx ecx, word [ecx + 0x32]
mov eax, dword [esi + 0x2c]
mov dword [esp + 0xb4], ecx
movsx ecx, cx
lea edx, [eax + 1]
lea eax, [ecx + eax + 1]
mov dword [esp + 0x60], edx
mov dword [esp + 0x44], ecx
mov dword [esi + 0x2c], eax
mov dword [esp + 0x48], eax
test edi, edi
jne 0x4d493a
mov edi, dword [esi + 0x28]
lea eax, [edi + 1]
mov dword [esi + 0x28], eax
mov eax, edx
lea edx, [ecx + eax - 1]
push edx
push eax
push 0
push 0x49
push ebx
mov dword [esp + 0x7c], edi
call fcn.00493fe0
mov eax, dword [esp + 0x58]
add esp, 0x14
push 0
push eax
push edi
push 0x71
push ebx
call fcn.00493fe0
mov ebx, dword [esp + 0x48]
mov dword [esp + 0x60], eax
mov eax, dword [ebp + 8]
add esp, 0x14
call fcn.00494ca0
mov esi, dword [ebp + 8]
mov ebx, dword [esp + 0x38]
cmp byte [esi + 0x12], 0
mov eax, 0x1004
jne 0x4d4a11
cmp dword [esp + 0x50], 0
jne 0x4d4a11
cmp dword [esp + 0x3c], 0
jne 0x4d4a11
cmp byte [esp + 0x30], 0
jne 0x4d4a11
cmp dword [esp + 0x64], 0
jne 0x4d4a11
mov eax, 0x100c
mov ecx, dword [esp + 0x6c]
mov edx, dword [ebp + 0x14]
push ecx
push eax
mov eax, dword [ebp + 0xc]
push 0
push 0
push edx
push eax
push esi
call fcn.004e28a0
add esp, 0x1c
mov dword [esp + 0x44], eax
test eax, eax
je 0x4d5741
mov ecx, dword [eax + 0x18]
mov edi, dword [eax + 0x1c]
movzx eax, byte [eax + 0x31]
mov dword [esp + 0x88], ecx
mov dword [esp + 0x8c], edi
mov dword [esp + 0x1c], eax
cmp eax, 1
je 0x4d4a8f
mov eax, dword [esi + 0x74]
test eax, eax
jne 0x4d4a62
mov eax, esi
cmp dword [esp + 0x1c], 2
mov byte [eax + 0x14], 1
jne 0x4d4a8f
test edi, edi
jl 0x4d4a8f
cmp edi, dword [esp + 0x24]
je 0x4d4a8f
mov eax, dword [esp + 0x58]
mov edx, edi
sub edx, dword [esp + 0x70]
cmp byte [edx + eax], 0
je 0x4d4a8f
mov dword [esp + 0x1c], 0
mov ecx, dword [esp + 0x18]
test byte [ecx + 0x24], 0x20
jne 0x4d4add
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
push 0
push edx
push eax
push 0x81
push ebx
call fcn.00493fe0
add esp, 0x14
cmp dword [esp + 0x1c], 0
jne 0x4d4bd9
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x78]
push 0
push ecx
push edx
push 0x95
push ebx
call fcn.00493fe0
add esp, 0x14
jmp 0x4d4bd9
movsx edi, word [esp + 0xb4]
xor esi, esi
test edi, edi
jle 0x4d4b1e
jmp 0x4d4af0
mov eax, dword [esp + 0x60]
mov edx, dword [esp + 0x34]
lea ecx, [esi + eax]
mov eax, dword [edx + 4]
movsx eax, word [eax + esi*2]
push ecx
mov ecx, dword [esp + 0x28]
push ecx
push ebx
mov ebx, dword [esp + 0x24]
call fcn.004ab540
mov ebx, dword [esp + 0x44]
inc esi
add esp, 0xc
cmp esi, edi
jl 0x4d4af0
cmp dword [esp + 0x1c], 0
je 0x4d4b6c
cmp dword [esp + 0x4c], 0
je 0x4d4b5b
mov ecx, dword [ebx]
cmp byte [ecx + 0x49], 0
jne 0x4d4b5b
mov eax, dword [esp + 0x4c]
lea edx, [eax + eax*4]
mov eax, dword [ebx + 0x58]
lea esi, [eax + edx*4]
movsx edx, byte [esi + 1]
mov eax, dword [esi + 0x10]
call fcn.004949a0
mov byte [esi + 1], 0
mov dword [esi + 0x10], 0
mov byte [esi], 0xab
mov ecx, dword [esp + 0x60]
mov dword [esp + 0x80], edi
mov dword [esp + 0x48], ecx
jmp 0x4d4bcf
mov esi, dword [esp + 0x34]
mov eax, dword [esp + 0x5c]
call fcn.004bfb10
mov edx, dword [esp + 0x48]
push edx
mov esi, eax
mov eax, dword [esp + 0x64]
push edi
push eax
push 0x66
push ebx
call fcn.00493fe0
add esp, 0x14
push edi
push esi
push eax
push ebx
call fcn.00494be0
mov ecx, dword [esp + 0x70]
mov edx, dword [esp + 0x58]
mov eax, dword [esp + 0x78]
push ecx
push edx
push eax
push 0x85
push ebx
call fcn.00493fe0
mov ecx, dword [ebx]
add esp, 0x24
cmp byte [ecx + 0x49], 0
jne 0x4d4bcf
lea edx, [eax + eax*4]
mov eax, dword [ebx + 0x58]
lea eax, [eax + edx*4]
mov byte [eax + 1], 0xfd
mov dword [eax + 0x10], edi
mov esi, dword [ebp + 8]
mov edi, dword [esp + 0x8c]
cmp dword [ebp + 0x1c], 0
jne 0x4d4de6
cmp dword [esp + 0x1c], 2
je 0x4d4bf7
mov ecx, dword [esp + 0x44]
push ecx
call fcn.004e32a0
add esp, 4
cmp dword [esp + 0x74], 0
jne 0x4d4cc4
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x4c], 0
test ecx, ecx
je 0x4d4c3b
mov eax, dword [esp + 0x88]
test eax, eax
jl 0x4d4c29
sub eax, dword [esp + 0x70]
mov edx, dword [esp + 0x58]
mov byte [eax + edx], 0
test edi, edi
jl 0x4d4c3b
mov edx, dword [esp + 0x58]
mov eax, edi
sub eax, dword [esp + 0x70]
mov byte [eax + edx], 0
cmp ecx, 2
jne 0x4d4c69
mov eax, dword [esp + 0x90]
xor ecx, ecx
test edi, edi
setge cl
sub eax, ecx
test eax, eax
jle 0x4d4c69
push 0
push 0
push 0
push 0x11
push ebx
call fcn.00493fe0
add esp, 0x14
mov dword [esp + 0x4c], eax
mov edx, dword [esp + 0x58]
mov eax, dword [esp + 0x70]
mov ecx, dword [esp + 0x18]
push 0
push 0
push edx
push eax
push 0
push 0x6e
push ecx
mov edi, esi
call fcn.004c2a50
add esp, 0x1c
cmp dword [esp + 0x4c], 0
je 0x4d4cbd
mov eax, dword [esp + 0x4c]
mov ecx, dword [ebx + 0x88]
test eax, eax
jge 0x4d4ca2
lea eax, [ecx - 1]
mov edx, dword [ebx]
cmp byte [edx + 0x49], 0
je 0x4d4cb1
mov eax, 0x539e70
jmp 0x4d4cba
mov edx, dword [ebx + 0x58]
lea eax, [eax + eax*4]
lea eax, [edx + eax*4]
mov dword [eax + 8], ecx
mov edi, dword [esp + 0x8c]
cmp dword [esp + 0x1c], 0
je 0x4d4d36
cmp dword [esp + 0x74], 0
jne 0x4d4d06
mov eax, dword [esp + 0x24]
cmp dword [esp + 0x88], eax
je 0x4d4d06
cmp edi, eax
je 0x4d4d06
mov eax, dword [esp + 0x80]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x24]
push eax
mov eax, dword [esp + 0x4c]
push 0x1c
mov esi, ebx
call fcn.00494440
mov esi, dword [ebp + 8]
add esp, 8
cmp dword [esp + 0x1c], 1
je 0x4d4d18
mov eax, ebx
call fcn.004944a0
mov dword [esp + 0x10], eax
cmp dword [esp + 0x34], 0
mov eax, dword [esp + 0x48]
jne 0x4d4d27
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
push 0
push ecx
push eax
push 0x32
jmp 0x4d4ddd
cmp dword [esp + 0x34], 0
je 0x4d4db6
mov eax, ebx
call fcn.004944a0
mov edx, dword [esp + 0x2c]
push 0
mov edi, eax
mov eax, dword [esp + 0x6c]
push edx
push eax
push 0x24
push ebx
mov dword [esp + 0x24], edi
call fcn.00493fe0
mov ecx, dword [esp + 0x5c]
mov edx, dword [esp + 0x7c]
add esp, 0x14
push 0
push ecx
push edx
push 0x80
push ebx
call fcn.00493fe0
mov ecx, dword [esp + 0x38]
add esp, 0x14
mov dword [esp + 0xa0], eax
mov eax, dword [esp + 0x48]
push eax
push edi
push ecx
push 0x1c
push ebx
call fcn.00493fe0
mov edx, dword [ebx]
add esp, 0x14
cmp byte [edx + 0x49], 0
jne 0x4d4de6
mov ecx, dword [ebx + 0x58]
lea eax, [eax + eax*4]
lea eax, [ecx + eax*4]
mov byte [eax + 1], 0xfd
mov dword [eax + 0x10], 0
jmp 0x4d4de6
mov edi, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x78]
push edi
push edx
push eax
push 0x29
push ebx
call fcn.00493fe0
mov ecx, dword [esp + 0x38]
add esp, 0x14
push edi
push eax
push ecx
mov dword [esp + 0x1c], eax
push 0x1f
push ebx
call fcn.00493fe0
add esp, 0x14
cmp byte [esp + 0x17], 0
je 0x4d4e10
mov edi, dword [esp + 0x54]
mov edx, dword [esp + 0x7c]
push edi
push edx
push esi
call fcn.004ac740
add esp, 0xc
push 0
push 0
push edi
push 0xf
push ebx
call fcn.00493fe0
add esp, 0x14
cmp byte [esp + 0x23], 0
jne 0x4d4eb7
cmp dword [esp + 0x3c], 0
jne 0x4d4ec2
cmp dword [esp + 0x50], 0
je 0x4d4f2f
mov ebx, dword [esp + 0x18]
xor edi, edi
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp + 0x10]
push eax
mov eax, dword [esp + 0x54]
push 3
push 0
push ecx
push esi
call fcn.004d4010
or edi, eax
xor edx, edx
add esp, 0x14
xor esi, esi
cmp dx, word [ebx + 0x2a]
mov dword [esp + 0x90], edi
jge 0x4d4f01
mov edi, dword [esp + 0x98]
mov dword [esp + 0x4c], esi
mov eax, dword [esp + 0x90]
cmp eax, 0xffffffff
je 0x4d4ed7
cmp esi, 0x20
jge 0x4d4e90
mov edx, 1
mov ecx, esi
shl edx, cl
test eax, edx
jne 0x4d4ed7
mov eax, dword [ebx + 4]
mov ecx, dword [esp + 0x4c]
test byte [eax + ecx + 0xf], 1
jne 0x4d4ed7
mov eax, dword [esp + 0x38]
push 0
lea edx, [esi + edi]
push edx
push 0
push 0x49
push eax
call fcn.00493fe0
add esp, 0x14
jmp 0x4d4eef
cmp dword [esp + 0x3c], 0
je 0x4d4e31
mov ebx, dword [esp + 0x18]
push ebx
push esi
call fcn.004befd0
add esp, 8
mov edi, eax
jmp 0x4d4e37
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x38]
lea ecx, [esi + edi]
push ecx
push edx
push eax
mov eax, esi
call fcn.004ab540
add esp, 0xc
movsx ecx, word [ebx + 0x2a]
add dword [esp + 0x4c], 0x10
inc esi
cmp esi, ecx
jl 0x4d4e72
cmp byte [esp + 0x17], 0
jne 0x4d4f2a
cmp dword [esp + 0x34], 0
jne 0x4d4f2a
mov edx, dword [esp + 0x54]
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x38]
push 0
push edx
push eax
push 0x4e
push ecx
call fcn.00493fe0
add esp, 0x14
mov esi, dword [ebp + 8]
jmp 0x4d4f33
mov ebx, dword [esp + 0x18]
mov edx, dword [ebp + 0x18]
mov eax, dword [ebp + 0x10]
push edx
push 1
push 1
push eax
mov eax, dword [esp + 0x60]
push esi
call fcn.004d4010
xor ecx, ecx
add esp, 0x14
xor edi, edi
cmp cx, word [ebx + 0x2a]
mov dword [esp + 0x98], eax
jge 0x4d5089
mov esi, dword [esp + 0x84]
movsx edx, word [ebx + 0x28]
cmp edi, edx
jne 0x4d4fc5
mov eax, dword [esp + 0x38]
mov ecx, dword [eax + 0x88]
mov edx, dword [eax + 0xc]
cmp dword [edx + 0x30], ecx
jg 0x4d4f96
push 0
push esi
push 0
push 0x49
call fcn.00493fa0
add esp, 0x10
jmp 0x4d507b
lea edx, [ecx + 1]
mov dword [eax + 0x88], edx
mov edx, dword [eax + 0x58]
lea ecx, [ecx + ecx*4]
lea eax, [edx + ecx*4]
xor ecx, ecx
mov byte [eax], 0x49
mov word [eax + 2], cx
mov dword [eax + 4], ecx
mov dword [eax + 8], esi
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov byte [eax + 1], cl
jmp 0x4d507b
mov edx, dword [esp + 0x40]
mov eax, dword [edx + edi*4]
test eax, eax
jl 0x4d502a
mov ecx, dword [ebp + 0x10]
lea eax, [eax + eax*2]
mov eax, dword [ecx + eax*8 + 4]
test eax, eax
je 0x4d4ffd
cmp byte [eax], 0xa4
jne 0x4d4ffd
mov edx, dword [eax + 0x1c]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
push 0
push esi
push edx
push 0x4e
push ecx
call fcn.00493fe0
add esp, 0x14
jmp 0x4d507b
mov edx, dword [ebp + 8]
push esi
push eax
push edx
call fcn.004ab740
add esp, 0xc
cmp eax, esi
je 0x4d507b
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + 8]
test ecx, ecx
je 0x4d507b
push 0
push esi
push eax
push 0x4f
push ecx
call fcn.00493fe0
add esp, 0x14
jmp 0x4d507b
test dword [esp + 0x9c], 1
je 0x4d5066
cmp edi, 0x1f
jg 0x4d5066
mov eax, dword [esp + 0x98]
mov edx, 1
mov ecx, edi
shl edx, cl
test eax, edx
jne 0x4d5066
mov ecx, dword [esp + 0x38]
push 0
push esi
push 0
push 0x49
push ecx
call fcn.00493fe0
add esp, 0x14
jmp 0x4d507b
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x38]
push esi
push edx
push eax
mov eax, edi
call fcn.004ab540
add esp, 0xc
movsx ecx, word [ebx + 0x2a]
inc edi
inc esi
cmp edi, ecx
jl 0x4d4f68
test byte [esp + 0x9c], 1
mov edi, dword [esp + 0x38]
je 0x4d522b
mov edx, dword [esp + 0x84]
mov eax, dword [esp + 0x18]
push edx
push edi
call fcn.004bfbf0
mov esi, dword [esp + 0x58]
mov ebx, dword [esp + 0x18]
add esp, 8
test esi, esi
je 0x4d5102
lea esp, [esp]
cmp byte [esi + 8], 0x76
jne 0x4d50fb
cmp byte [esi + 9], 1
jne 0x4d50fb
mov eax, dword [esi + 0x10]
push eax
mov eax, dword [ebp + 0x10]
call fcn.004d3610
add esp, 4
test eax, eax
je 0x4d50fb
mov ecx, dword [ebp + 0x18]
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x18]
push ebx
push ecx
mov ecx, dword [ebp + 8]
push edx
push eax
push esi
push ecx
call fcn.004d3ea0
add esp, 0x18
mov esi, dword [esi + 0x20]
test esi, esi
jne 0x4d50c0
xor edx, edx
cmp dword [esp + 0x34], edx
je 0x4d5187
mov ecx, dword [edi + 0x88]
mov eax, dword [edi + 0xc]
cmp dword [eax + 0x30], ecx
jg 0x4d5131
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x24]
push ecx
push ebx
push edx
push 0x1c
mov eax, edi
call fcn.00493fa0
add esp, 0x10
jmp 0x4d5166
mov esi, dword [edi + 0x58]
lea eax, [ecx + 1]
mov dword [edi + 0x88], eax
lea eax, [ecx + ecx*4]
lea eax, [esi + eax*4]
xor esi, esi
mov word [eax + 2], si
mov esi, dword [esp + 0x24]
mov dword [eax + 4], esi
mov esi, dword [esp + 0x48]
mov byte [eax], 0x1c
mov dword [eax + 8], ebx
mov dword [eax + 0xc], esi
mov dword [eax + 0x10], edx
mov byte [eax + 1], 0
mov eax, ecx
mov ecx, dword [edi]
cmp byte [ecx + 0x49], 0
jne 0x4d51e1
mov ecx, dword [esp + 0x80]
lea edx, [eax + eax*4]
mov eax, dword [edi + 0x58]
lea eax, [eax + edx*4]
mov byte [eax + 1], 0xfd
mov dword [eax + 0x10], ecx
jmp 0x4d51e1
mov eax, dword [edi + 0x88]
mov ecx, dword [edi + 0xc]
cmp dword [ecx + 0x30], eax
jg 0x4d51ae
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
push edx
push ebx
push eax
push 0x1f
mov eax, edi
call fcn.00493fa0
add esp, 0x10
jmp 0x4d51e1
lea ecx, [eax + 1]
mov dword [edi + 0x88], ecx
mov ecx, dword [edi + 0x58]
lea eax, [eax + eax*4]
lea eax, [ecx + eax*4]
xor ecx, ecx
mov word [eax + 2], cx
mov ecx, dword [esp + 0x24]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x28]
mov byte [eax], 0x1f
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], edx
mov byte [eax + 1], 0
mov eax, dword [esp + 0x18]
xor edx, edx
xor esi, esi
cmp dx, word [eax + 0x2a]
jge 0x4d522b
mov ecx, dword [esp + 0x40]
cmp dword [ecx + esi*4], 0
jge 0x4d5222
movsx edx, word [eax + 0x28]
cmp esi, edx
je 0x4d5222
mov eax, dword [esp + 0x84]
mov edx, dword [esp + 0x24]
mov ebx, dword [esp + 0x18]
lea ecx, [esi + eax]
push ecx
push edx
push edi
mov eax, esi
call fcn.004ab540
add esp, 0xc
mov eax, ebx
movsx ecx, word [eax + 0x2a]
inc esi
cmp esi, ecx
jl 0x4d51ef
cmp dword [esp + 0x74], 0
jne 0x4d54c7
mov edx, dword [esp + 0x40]
mov ecx, dword [esp + 0x10]
mov esi, dword [esp + 0x24]
xor ebx, ebx
push ebx
push edx
mov edx, dword [ebp + 0x18]
lea eax, [esp + 0x6c]
push eax
mov eax, dword [esp + 0x3c]
push ecx
mov ecx, dword [esp + 0x38]
push edx
mov edx, dword [esp + 0x68]
push eax
mov eax, dword [esp + 0x84]
push ecx
mov ecx, dword [esp + 0xb0]
push edx
mov edx, dword [esp + 0x38]
push eax
mov eax, dword [ebp + 8]
push esi
push ecx
push edx
push eax
call fcn.004c1250
add esp, 0x34
cmp dword [esp + 0x3c], ebx
je 0x4d52ab
mov ecx, dword [esp + 0xa8]
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x1c]
push edx
mov edx, dword [ebp + 8]
push ebx
push eax
push ecx
push edx
call fcn.004bea70
add esp, 0x18
xor edx, edx
cmp dword [esp + 0x64], edx
jne 0x4d52bd
cmp byte [esp + 0x30], dl
je 0x4d5389
mov ecx, dword [edi + 0x88]
mov eax, dword [edi + 0xc]
cmp dword [esp + 0x34], edx
je 0x4d533b
cmp dword [eax + 0x30], ecx
jg 0x4d52e7
mov ecx, dword [esp + 0x48]
push ecx
push 0
push esi
push 0x1c
mov eax, edi
call fcn.00493fa0
add esp, 0x10
jmp 0x4d5318
mov ebx, dword [edi + 0x58]
lea eax, [ecx + 1]
mov dword [edi + 0x88], eax
lea eax, [ecx + ecx*4]
lea eax, [ebx + eax*4]
xor ebx, ebx
mov word [eax + 2], bx
mov ebx, dword [esp + 0x48]
mov byte [eax], 0x1c
mov dword [eax + 4], esi
mov dword [eax + 8], edx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], edx
mov byte [eax + 1], 0
mov eax, ecx
mov ecx, dword [edi]
cmp byte [ecx + 0x49], 0
jne 0x4d5337
mov ecx, dword [edi + 0x58]
lea edx, [eax + eax*4]
lea ecx, [ecx + edx*4]
mov edx, dword [esp + 0x80]
mov byte [ecx + 1], 0xfd
mov dword [ecx + 0x10], edx
mov ebx, eax
jmp 0x4d5389
cmp dword [eax + 0x30], ecx
jg 0x4d5358
mov ecx, dword [esp + 0x28]
push ecx
push 0
push esi
push 0x1f
mov eax, edi
call fcn.00493fa0
add esp, 0x10
mov ebx, eax
jmp 0x4d5389
mov ebx, dword [edi + 0x58]
lea eax, [ecx + 1]
mov dword [edi + 0x88], eax
lea eax, [ecx + ecx*4]
lea eax, [ebx + eax*4]
xor ebx, ebx
mov word [eax + 2], bx
mov ebx, dword [esp + 0x28]
mov dword [eax + 0xc], ebx
mov byte [eax], 0x1f
mov dword [eax + 4], esi
mov dword [eax + 8], edx
mov dword [eax + 0x10], edx
mov byte [eax + 1], 0
mov ebx, ecx
mov ecx, dword [esp + 0x94]
mov edx, dword [esp + 0x6c]
mov eax, dword [ebp + 8]
push 0xffffffffffffffff
push ecx
mov ecx, dword [esp + 0x20]
push edx
push esi
push eax
call fcn.004ba430
add esp, 0x14
cmp dword [esp + 0x3c], 1
jg 0x4d53b7
cmp byte [esp + 0x30], 0
je 0x4d5404
mov eax, dword [edi + 0x88]
mov ecx, dword [edi + 0xc]
cmp dword [ecx + 0x30], eax
jg 0x4d53d8
push 0
push 0
push esi
push 0x7c
mov eax, edi
call fcn.00493fa0
add esp, 0x10
jmp 0x4d5404
mov ecx, dword [edi + 0x58]
lea edx, [eax + 1]
mov dword [edi + 0x88], edx
lea eax, [eax + eax*4]
lea eax, [ecx + eax*4]
xor edx, edx
xor ecx, ecx
mov byte [eax], 0x7c
mov word [eax + 2], dx
mov dword [eax + 4], esi
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov byte [eax + 1], cl
cmp dword [esp + 0x64], 0
jne 0x4d5412
cmp byte [esp + 0x30], 0
je 0x4d543a
mov ecx, dword [edi + 0x88]
test ebx, ebx
jge 0x4d541f
lea ebx, [ecx - 1]
mov eax, dword [edi]
cmp byte [eax + 0x49], 0
je 0x4d542e
mov eax, 0x539e70
jmp 0x4d5437
mov eax, dword [edi + 0x58]
lea edx, [ebx + ebx*4]
lea eax, [eax + edx*4]
mov dword [eax + 8], ecx
cmp dword [esp + 0x3c], 0
mov ebx, dword [esp + 0x18]
je 0x4d5466
mov ecx, dword [esp + 0xa8]
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x54]
push ecx
mov ecx, dword [ebp + 8]
push edx
push eax
push 0
push ebx
push ecx
call fcn.004bea70
add esp, 0x18
mov eax, dword [esp + 0x94]
mov ecx, dword [esp + 0x54]
xor edx, edx
cmp dword [esp + 0x1c], 2
push 0
setne dl
push 0
dec edx
and edx, 2
or edx, 4
push edx
mov edx, dword [esp + 0x78]
push eax
mov eax, dword [ebp + 8]
push ecx
push edx
push esi
push ebx
push eax
call fcn.004c2820
add esp, 0x24
cmp dword [esp + 0x3c], 0
je 0x4d54c7
mov ecx, dword [esp + 0xa8]
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x28]
push ecx
mov ecx, dword [ebp + 0x10]
push edx
mov edx, dword [ebp + 8]
push eax
push ecx
push edx
mov esi, ebx
call fcn.004bf8b0
add esp, 0x14
mov ecx, dword [esp + 0xa4]
mov ebx, dword [esp + 0x10]
xor edx, edx
cmp ecx, edx
je 0x4d5527
mov eax, dword [edi + 0x88]
mov esi, dword [edi + 0xc]
cmp dword [esi + 0x30], eax
jg 0x4d54f8
push edx
push 1
push ecx
push 0x53
mov eax, edi
call fcn.00493fa0
add esp, 0x10
jmp 0x4d5527
lea esi, [eax + 1]
mov dword [edi + 0x88], esi
mov esi, dword [edi + 0x58]
lea eax, [eax + eax*4]
lea eax, [esi + eax*4]
xor esi, esi
mov byte [eax], 0x53
mov word [eax + 2], si
mov dword [eax + 4], ecx
mov dword [eax + 8], 1
mov dword [eax + 0xc], edx
mov dword [eax + 0x10], edx
mov byte [eax + 1], 0
mov esi, dword [esp + 0x50]
test esi, esi
je 0x4d5572
nop
cmp byte [esi + 8], 0x76
jne 0x4d556b
cmp byte [esi + 9], 2
jne 0x4d556b
mov ecx, dword [esi + 0x10]
mov eax, dword [ebp + 0x10]
push ecx
call fcn.004d3610
add esp, 4
test eax, eax
je 0x4d556b
mov edx, dword [ebp + 0x18]
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x18]
push ebx
push edx
mov edx, dword [ebp + 8]
push eax
push ecx
push esi
push edx
call fcn.004d3ea0
add esp, 0x18
mov esi, dword [esi + 0x20]
test esi, esi
jne 0x4d5530
cmp dword [esp + 0x1c], 1
je 0x4d5679
cmp dword [esp + 0x1c], 2
jne 0x4d55b1
mov eax, dword [edi + 0xc]
mov eax, dword [eax + 0x40]
test eax, eax
je 0x4d559f
mov edx, dword [edi + 0x88]
lea ecx, [ebx*4 + 4]
sub eax, ecx
mov dword [eax], edx
mov eax, dword [esp + 0x44]
push eax
call fcn.004e32a0
add esp, 4
jmp 0x4d5679
xor ecx, ecx
cmp dword [esp + 0x34], ecx
je 0x4d562d
mov eax, dword [edi + 0xc]
mov eax, dword [eax + 0x40]
cmp eax, ecx
je 0x4d55d4
lea edx, [ebx*4 + 4]
sub eax, edx
mov edx, dword [edi + 0x88]
mov dword [eax], edx
mov eax, dword [edi + 0x88]
mov edx, dword [edi + 0xc]
cmp dword [edx + 0x30], eax
jg 0x4d55ff
mov eax, dword [esp + 0xa0]
mov ecx, dword [esp + 0x68]
push 0
push eax
push ecx
push 5
mov eax, edi
call fcn.00493fa0
add esp, 0x10
jmp 0x4d5679
lea edx, [eax + 1]
mov dword [edi + 0x88], edx
mov edx, dword [edi + 0x58]
lea eax, [eax + eax*4]
lea eax, [edx + eax*4]
xor edx, edx
mov word [eax + 2], dx
mov edx, dword [esp + 0x68]
mov dword [eax + 4], edx
mov edx, dword [esp + 0xa0]
mov byte [eax], 5
mov dword [eax + 8], edx
jmp 0x4d566f
mov eax, dword [edi + 0x88]
mov edx, dword [edi + 0xc]
cmp dword [edx + 0x30], eax
jg 0x4d564e
push 0
push ebx
push 0
push 0xb
mov eax, edi
call fcn.00493fa0
add esp, 0x10
jmp 0x4d5679
lea edx, [eax + 1]
mov dword [edi + 0x88], edx
mov edx, dword [edi + 0x58]
lea eax, [eax + eax*4]
lea eax, [edx + eax*4]
xor edx, edx
mov byte [eax], 0xb
mov word [eax + 2], dx
mov dword [eax + 4], ecx
mov dword [eax + 8], ebx
mov byte [eax + 1], 0
mov dword [eax + 0x10], ecx
mov dword [eax + 0xc], ecx
mov eax, dword [edi + 0xc]
mov eax, dword [eax + 0x40]
test eax, eax
je 0x4d5698
mov ecx, dword [esp + 0x2c]
lea edx, [ecx*4 + 4]
mov ecx, dword [edi + 0x88]
sub eax, edx
mov dword [eax], ecx
mov eax, dword [ebp + 8]
cmp byte [eax + 0x12], 0
jne 0x4d56ba
cmp dword [eax + 0x78], 0
jne 0x4d56ba
cmp dword [ebp + 0x1c], 0
jne 0x4d56ba
cmp dword [eax + 0x70], 0
je 0x4d56ba
mov esi, eax
call fcn.004c0030
mov ecx, dword [esp + 0xa4]
test ecx, ecx
je 0x4d5741
mov eax, dword [edi + 0x88]
mov edx, dword [edi + 0xc]
cmp dword [edx + 0x30], eax
jg 0x4d56e6
push 0
push 1
push ecx
push 0x51
mov eax, edi
call fcn.00493fa0
add esp, 0x10
jmp 0x4d5716
lea edx, [eax + 1]
mov dword [edi + 0x88], edx
mov edx, dword [edi + 0x58]
lea eax, [eax + eax*4]
lea eax, [edx + eax*4]
xor edx, edx
mov dword [eax + 4], ecx
xor ecx, ecx
mov byte [eax], 0x51
mov word [eax + 2], dx
mov dword [eax + 8], 1
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov byte [eax + 1], cl
push 1
mov ebx, edi
call fcn.00495c10
mov eax, dword [edi]
add esp, 4
cmp byte [eax + 0x49], 0
jne 0x4d5741
mov ecx, dword [edi + 0x64]
push 0
push 1
push str.rows_updated
or eax, 0xffffffff
call fcn.00493400
add esp, 0xc
mov eax, dword [esp + 0xb0]
test eax, eax
je 0x4d5759
mov ecx, dword [esp + 0xac]
mov dword [eax + 0xec], ecx
mov esi, dword [esp + 0x40]
mov edi, dword [esp + 0x5c]
test esi, esi
je 0x4d57f9
test edi, edi
je 0x4d57a1
cmp dword [edi + 0x1d8], 0
je 0x4d5781
mov eax, esi
mov ecx, edi
call fcn.00475120
jmp 0x4d57f9
cmp esi, dword [edi + 0x128]
jb 0x4d57a1
cmp esi, dword [edi + 0x12c]
jae 0x4d57a1
mov edx, dword [edi + 0x124]
mov dword [esi], edx
mov dword [edi + 0x124], esi
jmp 0x4d57f9
cmp dword [0x52e0e0], 0
je 0x4d57ef
mov eax, dword [0x53a950]
test eax, eax
je 0x4d57bd
push eax
call dword [0x52e13c]
add esp, 4
push esi
call dword [0x52e118]
sub dword [0x53a8e8], eax
dec dword [0x53a90c]
add esp, 4
push esi
call dword [0x52e110]
mov eax, dword [0x53a950]
add esp, 4
test eax, eax
je 0x4d57f9
push eax
call dword [0x52e144]
jmp 0x4d57f6
push esi
call dword [0x52e110]
add esp, 4
mov eax, dword [ebp + 0xc]
push eax
mov eax, edi
call fcn.004b7ba0
mov eax, dword [ebp + 0x10]
add esp, 4
test eax, eax
je 0x4d5818
push eax
push edi
call fcn.004a8d60
add esp, 8
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x4d5829
push eax
push edi
call fcn.004a7fb0
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret