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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0xb8
mov eax, dword [0x70a034]
xor eax, esp
mov dword [esp + 0xb4], eax
mov eax, ecx
mov dword [esp + 0x10], edx
mov ecx, dword [ebp + 8]
mov dword [esp + 0x34], ecx
mov ecx, dword [ebp + 0x28]
mov dword [esp + 0x7c], ecx
mov ecx, dword [ebp + 0x30]
push esi
mov esi, dword [ebp + 0x2c]
mov dword [esp + 0x58], ecx
xor ecx, ecx
push edi
mov edi, dword [eax + 8]
mov dword [esp + 0x7c], ecx
mov dword [esp + 0x70], ecx
mov dword [esp + 0x78], ecx
mov dword [esp + 0x80], ecx
mov ecx, dword [eax]
mov dword [esp + 0x14], eax
mov dword [esp + 0x34], esi
mov dword [esp + 0x74], 0
mov dword [esp + 0x6c], 0
mov byte [esp + 0x4b], 0
mov dword [esp + 0x60], ecx
mov dword [esp + 0x50], edi
test edi, edi
jne 0x4d63cd
cmp dword [eax + 0x74], edi
jne 0x4d63bc
test byte [ecx + 0x4c], 8
jne 0x4d63bc
mov byte [eax + 0x17], 1
mov ecx, eax
call fcn.004a1d40
mov edx, dword [esp + 0x18]
mov edi, eax
mov dword [esp + 0x50], edi
test byte [edx + 0x24], 0x20
movsx eax, word [edx + 0x2a]
mov dword [esp + 0x54], eax
jne 0x4d63ed
mov dword [esp + 0x40], 0
mov dword [esp + 0x64], 1
jmp 0x4d6418
mov ecx, dword [edx + 8]
mov dword [esp + 0x40], ecx
test ecx, ecx
je 0x4d6410
mov eax, dword [ecx + 0x38]
and al, 3
cmp al, 2
je 0x4d6408
mov ecx, dword [ecx + 0x14]
test ecx, ecx
jne 0x4d63f8
mov eax, dword [esp + 0x54]
mov dword [esp + 0x40], ecx
movzx ecx, word [ecx + 0x32]
mov dword [esp + 0x64], ecx
xor edx, edx
mov dword [esp + 0x20], edx
test eax, eax
jle 0x4d6612
xor ecx, ecx
mov dword [esp + 0x30], ecx
nop dword [eax]
mov eax, dword [esp + 0x18]
movsx eax, word [eax + 0x28]
cmp edx, eax
je 0x4d65fa
test esi, esi
je 0x4d644e
cmp dword [esi + edx*4], 0
jl 0x4d65fa
mov eax, dword [esp + 0x18]
mov eax, dword [eax + 4]
movzx esi, byte [eax + ecx + 0xc]
test esi, esi
je 0x4d65f6
mov dl, byte [ebp + 0x20]
cmp dl, 0xb
je 0x4d649e
movzx esi, dl
cmp esi, 5
jne 0x4d647f
cmp dword [eax + ecx + 4], 0
mov eax, 2
cmove esi, eax
mov edx, dword [esp + 0x20]
lea eax, [esi - 1]
mov dword [esp + 0x28], 0
cmp eax, 4
ja case.0x4d6497.4
jmp dword [eax*4 + 0x4d7ca4]
cmp esi, 0xb
jne 0x4d646d
mov esi, 2
jmp 0x4d647f
mov eax, dword [esp + 0x14]
inc edx
mov esi, dword [ebp + 0x14]
mov ecx, edi
add esi, edx
mov edx, 0x33
dec dword [eax + 0x38]
mov eax, dword [eax + 0x38]
push eax
push esi
mov dword [esp + 0x30], eax
call fcn.004a21b0
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
push esi
mov edx, dword [eax + 4]
mov eax, dword [esp + 0x3c]
mov edx, dword [edx + eax + 4]
call fcn.004be8f0
add esp, 0xc
mov edx, 0x33
mov ecx, edi
push dword [esp + 0x28]
push esi
call fcn.004a21b0
add esp, 8
mov esi, 2
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx + 0x74]
test eax, eax
cmovne ecx, eax
mov byte [ecx + 0x15], 1
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x18]
mov eax, dword [edx + 4]
push dword [eax + ecx]
push dword [edx]
push 0x70ff90
push dword [esp + 0x6c]
call fcn.00482b60
mov edx, dword [ebp + 0x14]
add esp, 0x10
mov ecx, dword [edi + 0x6c]
inc edx
add edx, dword [esp + 0x20]
mov dword [esp + 0x38], eax
cmp dword [edi + 0x70], ecx
jg 0x4d655e
push edx
push esi
push 0x513
mov edx, 0x44
mov ecx, edi
call fcn.004a2040
add esp, 0xc
jmp 0x4d658d
lea eax, [ecx + 1]
mov dword [edi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edi + 0x68]
mov edi, dword [esp + 0x50]
mov dword [eax + ecx*4], 0x44
mov dword [eax + ecx*4 + 4], 0x513
mov dword [eax + ecx*4 + 8], esi
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [edi]
mov edx, dword [esp + 0x38]
cmp byte [ecx + 0x51], 0
je 0x4d65a9
push edx
mov edx, 0xfffffff9
call fcn.004a2d50
add esp, 4
jmp 0x4d65bb
mov eax, dword [edi + 0x6c]
lea ecx, [eax + eax*4]
mov eax, dword [edi + 0x68]
mov byte [eax + ecx*4 - 0x13], 0xf9
mov dword [eax + ecx*4 - 4], edx
mov eax, dword [edi + 0x6c]
test eax, eax
jle 0x4d65d2
lea ecx, [eax + eax*4]
mov edx, 1
mov eax, dword [edi + 0x68]
mov word [eax + ecx*4 - 0x12], dx
mov edx, dword [esp + 0x28]
test edx, edx
je 0x4d65f2
mov ecx, dword [edi + 0xc]
not edx
mov eax, dword [ecx + 0x3c]
add eax, dword [ecx + 0x38]
jns 0x4d6656
push edx
mov edx, edi
call fcn.004a2820
add esp, 4
mov edx, dword [esp + 0x20]
mov esi, dword [esp + 0x34]
add dword [esp + 0x30], 0x10
inc edx
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x20], edx
cmp edx, dword [esp + 0x54]
jl 0x4d6430
mov eax, dword [esp + 0x18]
mov esi, dword [esp + 0x14]
mov edx, dword [eax + 0x18]
mov dword [esp + 0x28], edx
test edx, edx
je 0x4d6915
mov eax, dword [esp + 0x60]
mov eax, dword [eax + 0x20]
and eax, 0x200
or eax, 0
jne 0x4d6915
mov eax, dword [ebp + 0x14]
not eax
mov dword [esi + 0x34], eax
mov al, byte [ebp + 0x20]
cmp al, 0xb
je 0x4d66c0
movzx eax, al
mov dword [esp + 0x30], eax
jmp 0x4d66c8
mov ecx, dword [ecx + 0x40]
mov eax, dword [edi + 0x6c]
mov dword [ecx + edx*4], eax
jmp 0x4d65f2
mov esi, dword [ebp + 0x14]
mov ecx, dword [edi + 0x6c]
inc esi
add esi, edx
cmp dword [edi + 0x70], ecx
jg 0x4d6689
push 0
push dword [ebp + 0x24]
mov edx, 0x32
mov ecx, edi
push esi
call fcn.004a2040
add esp, 0xc
jmp 0x4d65f2
lea eax, [ecx + 1]
mov dword [edi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edi + 0x68]
mov edi, dword [esp + 0x50]
mov dword [eax + ecx*4 + 4], esi
mov esi, dword [ebp + 0x24]
mov dword [eax + ecx*4], 0x32
mov dword [eax + ecx*4 + 8], esi
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
jmp 0x4d65f6
mov dword [esp + 0x30], 2
xor ecx, ecx
mov dword [esp + 0x2c], ecx
cmp dword [edx], ecx
jle 0x4d690e
lea eax, [edx + 8]
mov dword [esp + 0x44], eax
nop dword [eax]
cmp dword [esp + 0x34], 0
mov esi, dword [eax - 4]
je 0x4d675d
mov edi, dword [esp + 0x34]
xorps xmm0, xmm0
xor al, al
mov dword [esp + 0xa8], 0
movaps xmmword [esp + 0x90], xmm0
movq qword [esp + 0xa0], xmm0
mov dword [esp + 0xa8], edi
mov edi, dword [esp + 0x50]
mov byte [esp + 0xa4], al
mov dword [esp + 0x94], 0x4d62f0
test esi, esi
je 0x4d674d
mov edx, esi
lea ecx, [esp + 0x90]
call fcn.004b5340
mov al, byte [esp + 0xa4]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
cmp byte [ebp + 0x1c], 0
jne 0x4d6755
and al, 0xfd
test al, al
je 0x4d68f2
mov ecx, dword [esp + 0x14]
push 0x10
dec dword [ecx + 0x38]
mov eax, dword [ecx + 0x38]
push eax
push esi
push ecx
mov dword [esp + 0x78], eax
call fcn.004bee20
mov edx, dword [esp + 0x40]
add esp, 0x10
cmp edx, 4
jne 0x4d67db
mov ecx, dword [edi + 0x6c]
cmp dword [edi + 0x70], ecx
jg 0x4d67a4
push 0
push dword [ebp + 0x24]
mov edx, 0xb
mov ecx, edi
push 0
call fcn.004a2040
add esp, 0xc
jmp 0x4d68c3
mov edx, dword [ebp + 0x24]
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], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
jmp 0x4d68c3
mov eax, dword [esp + 0x44]
mov eax, dword [eax]
mov dword [esp + 0x38], eax
test eax, eax
jne 0x4d67f3
mov eax, dword [esp + 0x18]
mov eax, dword [eax]
mov dword [esp + 0x38], eax
mov ecx, dword [esp + 0x14]
cmp edx, 5
mov eax, 2
cmove edx, eax
mov dword [esp + 0x30], edx
mov esi, dword [ecx + 8]
test esi, esi
jne 0x4d682d
cmp dword [ecx + 0x74], esi
jne 0x4d681e
mov eax, dword [ecx]
test byte [eax + 0x4c], 8
jne 0x4d681e
mov byte [ecx + 0x17], 1
call fcn.004a1d40
mov edx, dword [esp + 0x30]
mov esi, eax
mov ecx, dword [esp + 0x14]
cmp edx, 2
jne 0x4d683e
mov eax, dword [ecx + 0x74]
test eax, eax
cmovne ecx, eax
mov byte [ecx + 0x15], 1
mov ecx, dword [esi + 0x6c]
mov dword [esp + 0x4c], ecx
cmp dword [esi + 0x70], ecx
jg 0x4d6863
push 0
push edx
push 0x113
mov edx, 0x45
mov ecx, esi
call fcn.004a2040
add esp, 0xc
jmp 0x4d689a
mov edi, dword [esp + 0x50]
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4], 0x45
mov dword [eax + ecx*4 + 4], 0x113
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esp + 0x4c]
push 0
push dword [esp + 0x3c]
mov edx, eax
mov ecx, esi
call fcn.004a2fc0
mov eax, dword [esi + 0x6c]
add esp, 8
test eax, eax
jle 0x4d68c3
lea ecx, [eax + eax*4]
mov edx, 3
mov eax, dword [esi + 0x68]
mov word [eax + ecx*4 - 0x12], dx
mov ecx, dword [edi + 0xc]
mov edx, dword [esp + 0x68]
not edx
mov eax, dword [ecx + 0x3c]
add eax, dword [ecx + 0x38]
jns 0x4d68e1
push edx
mov edx, edi
call fcn.004a2820
add esp, 4
jmp 0x4d68ea
mov ecx, dword [ecx + 0x40]
mov eax, dword [edi + 0x6c]
mov dword [ecx + edx*4], eax
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x44]
inc ecx
add eax, 0x18
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x44], eax
cmp ecx, dword [edx]
jl 0x4d66e0
mov esi, dword [esp + 0x14]
mov dword [esi + 0x34], 0
mov eax, dword [esp + 0x5c]
test eax, eax
je 0x4d6999
cmp dword [eax], 0
jne 0x4d6934
mov byte [ebp + 0x20], 4
mov dword [esp + 0x5c], 0
jmp 0x4d6999
mov eax, dword [eax + 0x10]
mov dword [esp + 0x6c], eax
test eax, eax
je 0x4d6999
mov edx, dword [edi + 0x6c]
mov dword [esp + 0x70], edx
cmp dword [edi + 0x70], edx
jg 0x4d6966
push 0
push 0
push 0
mov edx, 0xb
mov ecx, edi
call fcn.004a2040
add esp, 0xc
mov dword [esp + 0x70], eax
jmp 0x4d6999
lea eax, [edx + 1]
mov dword [edi + 0x6c], eax
lea ecx, [edx + edx*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], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
cmp byte [ebp + 0x1c], 0
je 0x4d6de0
mov ecx, dword [esp + 0x40]
test ecx, ecx
jne 0x4d6de0
mov ecx, dword [esp + 0x18]
dec dword [esi + 0x38]
cmp byte [ebp + 0x20], 0xb
mov edx, dword [esi + 0x38]
movzx eax, byte [ecx + 0x30]
mov dword [esp + 0x30], edx
je 0x4d69cd
movzx eax, byte [ebp + 0x20]
jmp 0x4d69d8
cmp eax, 0xb
mov esi, 2
cmove eax, esi
mov esi, dword [esp + 0x5c]
mov dword [esp + 0x28], eax
test esi, esi
je 0x4d69ff
cmp dword [esi + 0x10], 0
jne 0x4d69ff
xor eax, eax
cmp dword [esi + 8], eax
setne al
lea eax, [eax*2 + 4]
mov dword [esp + 0x28], eax
jmp 0x4d6a22
cmp eax, 5
jne 0x4d6a22
cmp byte [ebp + 0x20], al
je 0x4d6a22
cmp dword [ecx + 8], 0
je 0x4d6a22
lea edx, [eax + 6]
mov ecx, edi
call fcn.004a20f0
mov edx, dword [esp + 0x30]
inc eax
mov dword [esp + 0x78], eax
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x4d6a8f
mov ecx, dword [edi + 0x6c]
cmp dword [edi + 0x70], ecx
jg 0x4d6a4b
push eax
push edx
push dword [ebp + 0x14]
mov edx, 0x35
mov ecx, edi
call fcn.004a2040
mov edx, dword [esp + 0x3c]
add esp, 0xc
jmp 0x4d6a78
mov esi, 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], esi
mov esi, dword [ebp + 0x18]
mov dword [eax + ecx*4], 0x35
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], esi
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [edi + 0x6c]
test eax, eax
jle 0x4d6a8f
lea ecx, [eax + eax*4]
mov esi, 0x90
mov eax, dword [edi + 0x68]
mov word [eax + ecx*4 - 0x12], si
mov ecx, dword [edi + 0x6c]
mov esi, dword [ebp + 0xc]
cmp dword [edi + 0x70], ecx
jg 0x4d6ab0
push dword [ebp + 0x14]
mov ecx, edi
push edx
push esi
mov edx, 0x1f
call fcn.004a2040
add esp, 0xc
jmp 0x4d6ada
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 [ebp + 0x14]
mov dword [eax + ecx*4], 0x1f
mov dword [eax + ecx*4 + 4], esi
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
mov esi, dword [esp + 0x28]
lea eax, [esi - 1]
cmp eax, 5
ja case.default.0x4d6aea
jmp dword [eax*4 + 0x4d7cb8]
mov eax, dword [esp + 0x60]
xor esi, esi
mov eax, dword [eax + 0x20]
and eax, 0x2000
or eax, esi
je 0x4d6b1d
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
push esi
push esi
push 0x7c
call fcn.004eaaf0
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x4d6b56
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx]
mov eax, dword [eax + 0x20]
and eax, 0x4000
or eax, 0
je 0x4d6b9b
mov eax, dword [esp + 0x18]
push 0
mov ecx, dword [eax + 0x48]
mov edx, dword [eax]
add ecx, 0x38
call fcn.004853a0
add esp, 4
cmp dword [eax + 8], 0
jne 0x4d6b56
mov eax, dword [esp + 0x18]
cmp dword [eax + 0x10], 0
je 0x4d6b97
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
push 0xffffffffffffffff
push 1
mov eax, dword [ecx + 0x74]
test eax, eax
push 5
push 0
push 1
push dword [ebp + 0x14]
cmovne ecx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
mov byte [ecx + 0x14], 1
mov ecx, dword [esp + 0x34]
push esi
call fcn.004ce530
add esp, 0x24
mov dword [esp + 0x74], 1
jmp 0x4d6d24
mov ecx, dword [esp + 0x14]
mov esi, dword [esp + 0x18]
cmp dword [esi + 8], 0
je 0x4d6bc9
mov eax, dword [ecx + 0x74]
mov edx, esi
test eax, eax
push 0xffffffffffffffff
cmovne ecx, eax
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
mov byte [ecx + 0x14], 1
mov ecx, dword [esp + 0x24]
call fcn.004ce930
add esp, 0x10
mov dword [esp + 0x74], 1
jmp 0x4d6d24
push dword [ebp + 0xc]
mov edx, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
push 0
push dword [esp + 0x20]
call fcn.004ee120
add esp, 0xc
mov edx, dword [ebp + 0x24]
mov ecx, edi
call fcn.004a2220
jmp 0x4d6d24
mov esi, 2
mov edx, dword [esp + 0x18]
movzx eax, word [edx + 0x28]
test ax, ax
js 0x4d6c3a
movsx ecx, ax
mov eax, dword [edx + 4]
add ecx, ecx
push dword [eax + ecx*8]
mov eax, dword [esp + 0x18]
push dword [edx]
push 0x70fa68
push dword [eax]
call fcn.00482b60
add esp, 0x10
mov dword [esp + 0x28], 0x613
jmp 0x4d6c57
push dword [edx]
mov eax, dword [esp + 0x18]
push str._s.rowid
push dword [eax]
call fcn.00482b60
add esp, 0xc
mov dword [esp + 0x28], 0xa13
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x38], eax
mov edx, dword [ecx + 8]
mov dword [esp + 0x44], edx
test edx, edx
jne 0x4d6c8a
cmp dword [ecx + 0x74], edx
jne 0x4d6c7b
mov eax, dword [ecx]
test byte [eax + 0x4c], 8
jne 0x4d6c7b
mov byte [ecx + 0x17], 1
call fcn.004a1d40
mov ecx, dword [esp + 0x14]
mov edx, eax
mov dword [esp + 0x44], edx
cmp esi, 2
jne 0x4d6c9b
mov eax, dword [ecx + 0x74]
test eax, eax
cmovne ecx, eax
mov byte [ecx + 0x15], 1
mov ecx, dword [edx + 0x6c]
mov dword [esp + 0x4c], ecx
cmp dword [edx + 0x70], ecx
jg 0x4d6cc4
mov edx, dword [esp + 0x28]
push 0
push esi
mov esi, dword [esp + 0x4c]
mov ecx, esi
push edx
mov edx, 0x45
call fcn.004a2040
add esp, 0xc
jmp 0x4d6cfb
lea eax, [ecx + 1]
mov dword [edx + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edx + 0x68]
mov edx, dword [esp + 0x28]
mov dword [eax + ecx*4 + 8], esi
mov esi, dword [esp + 0x44]
mov dword [eax + ecx*4], 0x45
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esp + 0x4c]
push 0xfffffffffffffff9
push dword [esp + 0x3c]
mov edx, eax
mov ecx, esi
call fcn.004a2fc0
mov eax, dword [esi + 0x6c]
add esp, 8
test eax, eax
jle 0x4d6d24
lea ecx, [eax + eax*4]
mov edx, 2
mov eax, dword [esi + 0x68]
mov word [eax + ecx*4 - 0x12], dx
mov ecx, dword [edi + 0xc]
mov edx, dword [esp + 0x30]
not edx
mov eax, dword [ecx + 0x3c]
add eax, dword [ecx + 0x38]
jns 0x4d6d42
push edx
mov edx, edi
call fcn.004a2820
add esp, 4
jmp 0x4d6d4b
mov ecx, dword [ecx + 0x40]
mov eax, dword [edi + 0x6c]
mov dword [ecx + edx*4], eax
cmp dword [esp + 0x78], 0
je 0x4d6de0
mov esi, dword [edi + 0x6c]
mov dword [esp + 0x80], esi
cmp dword [edi + 0x70], esi
jg 0x4d6d83
push 0
push 0
push 0
mov edx, 0xb
mov ecx, edi
call fcn.004a2040
add esp, 0xc
mov dword [esp + 0x80], eax
jmp 0x4d6db6
lea eax, [esi + 1]
mov dword [edi + 0x6c], eax
lea ecx, [esi + esi*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], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [esp + 0x78]
sub ecx, 1
mov edx, dword [edi + 0x6c]
jns 0x4d6dc5
lea ecx, [edx - 1]
mov eax, dword [edi]
cmp byte [eax + 0x51], 0
je 0x4d6dd4
mov eax, 0x71d19c
jmp 0x4d6ddd
mov eax, dword [edi + 0x68]
lea ecx, [ecx + ecx*4]
lea eax, [eax + ecx*4]
mov dword [eax + 8], edx
mov esi, dword [esp + 0x18]
mov dword [esp + 0x24], 0
mov eax, dword [esi + 8]
mov dword [esp + 0x1c], eax
test eax, eax
je 0x4d7284
mov edx, dword [esp + 0x3c]
xor ecx, ecx
cmp dword [edx + ecx*4], 0
je 0x4d7270
mov edx, dword [esp + 0x6c]
cmp edx, eax
jne 0x4d6ec3
mov eax, dword [esp + 0x70]
mov esi, dword [edi + 0x6c]
inc eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x7c], esi
cmp dword [edi + 0x70], esi
jg 0x4d6e47
push 0
push 0
push 0
mov edx, 0xb
mov ecx, edi
call fcn.004a2040
add esp, 0xc
mov dword [esp + 0x7c], eax
jmp 0x4d6e7a
lea eax, [esi + 1]
mov dword [edi + 0x6c], eax
lea ecx, [esi + esi*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], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esp + 0x70]
mov ecx, eax
mov edx, dword [edi + 0x6c]
test eax, eax
jns 0x4d6e8a
lea ecx, [edx - 1]
mov eax, dword [edi]
cmp byte [eax + 0x51], 0
je 0x4d6ea8
mov esi, dword [esp + 0x14]
mov eax, 0x71d19c
mov dword [eax + 8], edx
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x6c]
jmp 0x4d6ed1
mov eax, dword [edi + 0x68]
lea ecx, [ecx + ecx*4]
mov esi, dword [esp + 0x14]
mov dword [eax + ecx*4 + 8], edx
mov edx, dword [esp + 0x6c]
lea eax, [eax + ecx*4]
mov eax, dword [esp + 0x1c]
jmp 0x4d6ed1
mov esi, dword [esp + 0x14]
dec dword [esi + 0x38]
mov ecx, dword [esi + 0x38]
mov dword [esp + 0x34], ecx
cmp byte [esp + 0x4b], 0
jne 0x4d6ef8
test edx, edx
je 0x4d6ee0
cmp edx, eax
jne 0x4d6ef8
mov eax, dword [ebp + 0x14]
mov ecx, edi
mov edx, dword [esp + 0x18]
inc eax
push eax
call fcn.004d4a20
add esp, 4
mov byte [esp + 0x4b], 1
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x24]
cmp dword [eax + 0x24], 0
je 0x4d6fd1
mov eax, dword [esp + 0x3c]
mov edx, dword [eax + ecx*4]
mov ecx, dword [edi + 0x6c]
cmp dword [edi + 0x70], ecx
jg 0x4d6f2f
push 0
push edx
push 0
mov edx, 0x49
mov ecx, edi
call fcn.004a2040
add esp, 0xc
jmp 0x4d6f62
lea eax, [ecx + 1]
mov dword [edi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edi + 0x68]
mov edi, dword [esp + 0x50]
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
mov eax, dword [ebp + 0x14]
not eax
mov dword [esi + 0x34], eax
mov eax, dword [esp + 0x1c]
mov edx, dword [eax + 0x24]
mov eax, dword [esi]
mov dword [esp + 0x38], eax
test edx, edx
je 0x4d6f91
push 0
push 0
mov ecx, eax
call fcn.004b8ed0
mov esi, eax
add esp, 8
mov eax, dword [esp + 0x38]
jmp 0x4d6f93
xor esi, esi
cmp byte [eax + 0x51], 0
jne 0x4d6fb1
mov eax, dword [esp + 0x14]
push 0x10
push dword [esp + 0x38]
push esi
push eax
call fcn.004bf1d0
mov eax, dword [esp + 0x48]
add esp, 0x10
test esi, esi
je 0x4d6fbe
mov edx, esi
mov ecx, eax
call fcn.004b8c80
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x24]
mov dword [eax + 0x34], 0
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x3c]
xor esi, esi
mov edx, dword [edx + ecx*4]
xor ecx, ecx
inc edx
mov dword [esp + 0x54], ecx
mov dword [esp + 0x30], edx
cmp si, word [eax + 0x34]
jae 0x4d71c7
mov esi, edx
mov dword [esp + 0x20], edx
mov dword [esp + 0x28], ecx
nop dword [eax]
mov eax, dword [eax + 4]
movsx edx, word [eax + ecx*2]
cmp edx, 0xfffffffe
jne 0x4d7130
mov ecx, dword [esp + 0x14]
mov eax, dword [ebp + 0x14]
mov edx, dword [esp + 0x28]
not eax
mov dword [ecx + 0x34], eax
mov eax, dword [esp + 0x1c]
mov ecx, dword [ecx]
mov dword [esp + 0x2c], ecx
mov eax, dword [eax + 0x28]
mov edx, dword [eax + edx + 4]
test edx, edx
je 0x4d7047
push 0
push 0
call fcn.004b8ed0
mov ecx, dword [esp + 0x34]
add esp, 8
jmp 0x4d7049
xor eax, eax
cmp byte [ecx + 0x51], 0
mov dword [esp + 0x38], eax
jne 0x4d7094
test eax, eax
je 0x4d70e2
cmp byte [eax], 0xab
jne 0x4d70e2
mov edx, dword [eax + 0x1c]
mov eax, dword [esp + 0x14]
mov esi, dword [eax + 8]
mov ecx, dword [esi + 0x6c]
cmp dword [esi + 0x70], ecx
jg 0x4d70b1
push 0
push dword [esp + 0x24]
push edx
mov edx, 0x4e
mov ecx, esi
call fcn.004a2040
add esp, 0xc
mov esi, dword [esp + 0x20]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x38]
test edx, edx
je 0x4d70a1
call fcn.004b8c80
mov eax, dword [esp + 0x14]
mov dword [eax + 0x34], 0
jmp 0x4d71a0
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4], 0x4e
mov esi, dword [esp + 0x20]
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
jmp 0x4d7090
mov ecx, dword [esp + 0x14]
mov edx, eax
push esi
call fcn.004bd5f0
mov edx, eax
add esp, 4
cmp edx, esi
je 0x4d7090
mov eax, dword [esp + 0x14]
mov esi, dword [eax + 8]
test esi, esi
je 0x4d708c
mov ecx, dword [esi + 0x6c]
cmp dword [esi + 0x70], ecx
jg 0x4d711b
push 0
push dword [esp + 0x24]
push edx
mov edx, 0x4f
jmp 0x4d7082
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4], 0x4f
jmp 0x4d70c4
cmp edx, 0xffffffff
je 0x4d7149
mov eax, dword [esp + 0x18]
movsx eax, word [eax + 0x28]
cmp edx, eax
je 0x4d7149
mov esi, dword [ebp + 0x14]
inc esi
add esi, edx
jmp 0x4d714c
mov esi, dword [ebp + 0x14]
mov ecx, dword [edi + 0x6c]
sar edx, 0x1f
and edx, 1
add edx, 0x4f
cmp dword [edi + 0x70], ecx
jg 0x4d7174
push 0
push dword [esp + 0x24]
mov ecx, edi
push esi
call fcn.004a2040
mov esi, dword [esp + 0x2c]
add esp, 0xc
jmp 0x4d71a0
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], esi
mov esi, dword [esp + 0x20]
mov byte [eax + ecx*4], dl
lea eax, [eax + ecx*4]
xor ecx, ecx
mov dword [eax + 8], esi
mov word [eax + 2], cx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov byte [eax + 1], cl
mov eax, dword [esp + 0x1c]
inc esi
mov ecx, dword [esp + 0x54]
add dword [esp + 0x28], 0x18
inc ecx
mov dword [esp + 0x54], ecx
movzx eax, word [eax + 0x34]
cmp ecx, eax
mov dword [esp + 0x20], esi
mov eax, dword [esp + 0x1c]
jl 0x4d7000
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x3c]
movzx esi, word [eax + 0x34]
mov edx, dword [edx + ecx*4]
mov ecx, dword [edi + 0x6c]
cmp dword [edi + 0x70], ecx
jg 0x4d71f5
push edx
push esi
push dword [esp + 0x38]
mov edx, 0x5c
mov ecx, edi
call fcn.004a2040
add esp, 0xc
jmp 0x4d7224
lea eax, [ecx + 1]
mov dword [edi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edi + 0x68]
mov edi, dword [esp + 0x30]
mov dword [eax + ecx*4 + 4], edi
mov edi, dword [esp + 0x50]
mov dword [eax + ecx*4], 0x5c
mov dword [eax + ecx*4 + 8], esi
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
cmp dword [ebp + 0x18], 0
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x40]
je 0x4d72c0
cmp edx, ecx
jne 0x4d72c0
cmp byte [ebp + 0x1c], 0
jne 0x4d72c0
mov ecx, dword [edi + 0xc]
mov edx, dword [esp + 0x34]
not edx
mov eax, dword [ecx + 0x3c]
add eax, dword [ecx + 0x38]
jns 0x4d72b5
push edx
mov edx, edi
call fcn.004a2820
add esp, 4
mov esi, dword [esp + 0x18]
mov edx, dword [esp + 0x3c]
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + 0x14]
inc ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x24], ecx
test eax, eax
jne 0x4d6e01
mov edx, dword [esp + 0x78]
test edx, edx
je 0x4d7bf2
mov ecx, dword [edi + 0x6c]
cmp dword [edi + 0x70], ecx
jg 0x4d7b93
push 0
push edx
push 0
mov edx, 0xb
mov ecx, edi
call fcn.004a2040
add esp, 0xc
jmp 0x4d7bc6
mov ecx, dword [ecx + 0x40]
mov eax, dword [edi + 0x6c]
mov dword [ecx + edx*4], eax
jmp 0x4d7260
movzx eax, byte [ecx + 0x36]
test eax, eax
je 0x4d7244
cmp byte [ebp + 0x20], 0xb
je 0x4d72d8
movzx eax, byte [ebp + 0x20]
jmp 0x4d72e3
cmp eax, 0xb
mov esi, 2
cmove eax, esi
mov dword [esp + 0x28], eax
cmp dword [esp + 0x6c], ecx
jne 0x4d7304
mov esi, dword [esp + 0x5c]
xor eax, eax
cmp dword [esi + 8], eax
setne al
lea eax, [eax*2 + 4]
mov dword [esp + 0x28], eax
cmp dword [esp + 0x24], 0
jne 0x4d73cd
cmp dword [ecx + 0x14], 0
jne 0x4d73cd
cmp edx, ecx
jne 0x4d73cd
cmp eax, 5
jne 0x4d73cd
mov eax, dword [esp + 0x60]
mov eax, dword [eax + 0x20]
and eax, 0x2000
mov dword [esp + 0x88], eax
mov eax, 0
jne 0x4d7348
test eax, eax
je 0x4d738e
mov ecx, dword [esp + 0x14]
xor edx, edx
xor esi, esi
mov eax, dword [ecx]
mov eax, dword [eax + 0x20]
and eax, 0x40000
or eax, edx
je 0x4d7369
mov edx, dword [esp + 0x18]
call fcn.004e9a70
mov edx, eax
mov ecx, edx
test edx, edx
je 0x4d7383
nop
cmp byte [ecx + 8], 0x7c
jne 0x4d737c
movzx eax, byte [ecx + 9]
or esi, eax
mov ecx, dword [ecx + 0x20]
test ecx, ecx
jne 0x4d7370
xor eax, eax
test esi, esi
cmovne eax, edx
test eax, eax
jne 0x4d73cd
mov eax, dword [esp + 0x60]
mov eax, dword [eax + 0x20]
and eax, 0x4000
mov dword [esp + 0x88], eax
mov eax, 0
jne 0x4d73ac
test eax, eax
je 0x4d7408
mov esi, dword [esp + 0x18]
cmp dword [esi + 0x10], eax
jne 0x4d73cd
mov ecx, dword [esi + 0x48]
mov edx, dword [esi]
add ecx, 0x38
push 0
call fcn.004853a0
add esp, 4
cmp dword [eax + 8], 0
je 0x4d740c
mov eax, dword [esp + 0x1c]
mov edx, dword [edi + 0x6c]
mov dword [esp + 0x4c], edx
movzx esi, word [eax + 0x32]
mov dword [esp + 0x68], esi
cmp dword [edi + 0x70], edx
jg 0x4d743b
push dword [esp + 0x30]
mov eax, dword [esp + 0x28]
mov edx, 0x1b
push dword [esp + 0x38]
add eax, dword [ebp + 0x10]
mov ecx, edi
push eax
call fcn.004a2040
add esp, 0xc
mov edx, eax
jmp 0x4d747d
mov esi, dword [esp + 0x18]
mov ecx, dword [edi + 0xc]
mov edx, dword [esp + 0x34]
not edx
mov eax, dword [ecx + 0x3c]
add eax, dword [ecx + 0x38]
jns 0x4d742d
push edx
mov edx, edi
call fcn.004a2820
add esp, 4
jmp 0x4d7264
mov ecx, dword [ecx + 0x40]
mov eax, dword [edi + 0x6c]
mov dword [ecx + edx*4], eax
jmp 0x4d7264
mov esi, dword [esp + 0x68]
lea eax, [edx + 1]
mov dword [edi + 0x6c], eax
lea ecx, [edx + edx*4]
mov eax, dword [edi + 0x68]
mov edi, dword [esp + 0x24]
add edi, dword [ebp + 0x10]
mov edx, dword [esp + 0x4c]
mov dword [eax + ecx*4 + 4], edi
mov edi, dword [esp + 0x34]
mov dword [eax + ecx*4 + 8], edi
mov edi, dword [esp + 0x30]
mov dword [eax + ecx*4 + 0xc], edi
mov edi, dword [esp + 0x50]
mov dword [eax + ecx*4], 0x1b
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [edi]
cmp byte [eax + 0x51], 0
jne 0x4d7494
mov eax, dword [edi + 0x68]
lea ecx, [edx + edx*4]
mov byte [eax + ecx*4 + 1], 0xfd
mov dword [eax + ecx*4 + 0x10], esi
mov edx, dword [esp + 0x1c]
cmp edx, dword [esp + 0x40]
jne 0x4d74a8
mov esi, dword [esp + 0x30]
mov dword [esp + 0x20], esi
jmp 0x4d7506
mov eax, dword [esp + 0x64]
mov edx, dword [esp + 0x14]
cmp eax, 1
jne 0x4d74d5
mov al, byte [edx + 0x13]
test al, al
jne 0x4d74c4
inc dword [edx + 0x2c]
mov esi, dword [edx + 0x2c]
jmp 0x4d74fe
dec al
mov byte [edx + 0x13], al
movzx eax, al
mov esi, dword [edx + eax*4 + 0x94]
jmp 0x4d74fe
mov ecx, dword [edx + 0x1c]
mov esi, dword [edx + 0x20]
mov dword [esp + 0x20], esi
cmp eax, ecx
jg 0x4d74f1
add eax, esi
sub ecx, dword [esp + 0x64]
mov dword [edx + 0x20], eax
mov dword [edx + 0x1c], ecx
jmp 0x4d7502
mov eax, dword [edx + 0x2c]
lea esi, [eax + 1]
add eax, dword [esp + 0x64]
mov dword [edx + 0x2c], eax
mov dword [esp + 0x20], esi
mov edx, dword [esp + 0x1c]
cmp dword [ebp + 0x18], 0
jne 0x4d7517
cmp dword [esp + 0x28], 5
jne 0x4d78e9
mov eax, dword [esp + 0x18]
test byte [eax + 0x24], 0x20
jne 0x4d75fb
mov ecx, dword [edi + 0x6c]
cmp dword [edi + 0x70], ecx
jg 0x4d7549
mov eax, dword [esp + 0x24]
mov edx, 0x87
add eax, dword [ebp + 0x10]
mov ecx, edi
push 0
push esi
push eax
call fcn.004a2040
add esp, 0xc
jmp 0x4d7583
mov edx, dword [esp + 0x24]
lea eax, [ecx + 1]
add edx, dword [ebp + 0x10]
lea ecx, [ecx + ecx*4]
mov esi, dword [esp + 0x20]
mov dword [edi + 0x6c], eax
mov eax, dword [edi + 0x68]
mov edi, dword [esp + 0x50]
mov dword [eax + ecx*4], 0x87
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 eax, dword [ebp + 0x18]
test eax, eax
je 0x4d78e9
mov ecx, dword [edi + 0x6c]
cmp dword [edi + 0x70], ecx
jg 0x4d75ad
push eax
push dword [esp + 0x38]
mov edx, 0x35
mov ecx, edi
push esi
call fcn.004a2040
add esp, 0xc
jmp 0x4d75db
mov edx, dword [esp + 0x34]
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], esi
mov esi, dword [ebp + 0x18]
mov dword [eax + ecx*4], 0x35
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], esi
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [edi + 0x6c]
test eax, eax
jle 0x4d78e9
lea ecx, [eax + eax*4]
mov edx, 0x90
mov eax, dword [edi + 0x68]
mov word [eax + ecx*4 - 0x12], dx
jmp 0x4d78e9
mov esi, dword [esp + 0x40]
cmp edx, esi
je 0x4d76e6
mov ecx, dword [esp + 0x40]
xor esi, esi
xor eax, eax
mov dword [esp + 0x2c], esi
cmp ax, word [ecx + 0x32]
jae 0x4d76e2
mov eax, dword [esp + 0x20]
mov dword [esp + 0x44], eax
movzx edx, word [edx + 0x34]
xor ecx, ecx
test edx, edx
jle 0x4d764e
mov eax, dword [esp + 0x40]
mov eax, dword [eax + 4]
movzx esi, word [eax + esi*2]
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + 4]
cmp si, word [eax]
je 0x4d767f
inc ecx
add eax, 2
cmp ecx, edx
jl 0x4d7641
or eax, 0xffffffff
mov ecx, dword [edi + 0x6c]
movsx edx, ax
mov dword [esp + 0x4c], edx
cmp dword [edi + 0x70], ecx
jg 0x4d7684
mov esi, dword [esp + 0x44]
mov ecx, edi
mov eax, dword [esp + 0x24]
add eax, dword [ebp + 0x10]
push esi
push edx
push eax
mov edx, 0x5a
call fcn.004a2040
add esp, 0xc
jmp 0x4d76be
movzx eax, cx
jmp 0x4d7651
mov esi, dword [esp + 0x24]
lea eax, [ecx + 1]
add esi, dword [ebp + 0x10]
lea ecx, [ecx + ecx*4]
mov edx, dword [esp + 0x4c]
mov dword [edi + 0x6c], eax
mov eax, dword [edi + 0x68]
mov edi, dword [esp + 0x50]
mov dword [eax + ecx*4 + 4], esi
mov esi, dword [esp + 0x44]
mov dword [eax + ecx*4], 0x5a
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], esi
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esp + 0x40]
inc esi
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x1c]
inc ecx
mov dword [esp + 0x44], esi
mov esi, ecx
movzx eax, word [eax + 0x32]
mov dword [esp + 0x2c], ecx
cmp ecx, eax
jl 0x4d7625
mov esi, dword [esp + 0x40]
cmp dword [ebp + 0x18], 0
je 0x4d78e9
movzx ecx, word [esi + 0x32]
mov eax, dword [edi + 0x6c]
add eax, ecx
mov dword [esp + 0x54], 0x34
mov dword [esp + 0x38], eax
mov eax, dword [edx + 0x38]
mov edx, dword [esp + 0x20]
and al, 3
cmp al, 2
cmove edx, dword [esp + 0x30]
mov dword [esp + 0x4c], edx
xor edx, edx
mov dword [esp + 0x2c], edx
test ecx, ecx
je 0x4d78e9
mov eax, dword [ebp + 0x18]
inc eax
mov dword [esp + 0x68], eax
nop
mov eax, dword [esi + 0x20]
mov edx, dword [eax + edx*4]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x88], edx
mov esi, dword [eax]
mov ch, byte [esi + 0x4e]
mov cl, byte [esi + 0xa5]
mov byte [esp + 0x5b], ch
mov byte [esp + 0x5a], cl
test edx, edx
je 0x4d777d
movzx eax, cl
mov ecx, esi
push eax
call fcn.004ccfd0
mov cl, byte [esp + 0x5e]
add esp, 4
mov edx, dword [esp + 0x88]
mov esi, eax
mov ch, byte [esp + 0x5b]
mov dword [esp + 0x44], eax
jmp 0x4d7784
mov esi, dword [esi + 8]
mov dword [esp + 0x44], esi
test esi, esi
je 0x4d7798
movzx eax, ch
lea eax, [eax + eax*4]
lea esi, [esi + eax*4]
add esi, 0xffffffec
mov dword [esp + 0x44], esi
test cl, cl
jne 0x4d77bc
test esi, esi
je 0x4d77a6
cmp dword [esi + 0xc], 0
jne 0x4d77bc
push edx
mov dl, ch
mov ecx, dword [esp + 0x18]
push esi
call fcn.004ccef0
mov esi, eax
add esp, 8
mov dword [esp + 0x44], esi
mov eax, dword [esp + 0x40]
mov edx, dword [esp + 0x2c]
mov ecx, dword [eax + 4]
movsx eax, word [ecx + edx*2]
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x88], eax
movzx ecx, word [ecx + 0x32]
dec ecx
cmp edx, ecx
jne 0x4d77ef
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x38], ecx
mov dword [esp + 0x54], 0x35
mov ecx, dword [esp + 0x68]
mov edx, dword [edi + 0x6c]
add ecx, eax
cmp dword [edi + 0x70], edx
jg 0x4d781d
mov eax, dword [esp + 0x2c]
add eax, dword [esp + 0x4c]
mov edx, dword [esp + 0x54]
push eax
push dword [esp + 0x3c]
push ecx
mov ecx, edi
call fcn.004a2040
add esp, 0xc
mov edx, eax
jmp 0x4d786d
mov esi, dword [esp + 0x44]
lea eax, [edx + 1]
mov dword [edi + 0x6c], eax
lea ecx, [edx + edx*4]
mov eax, dword [edi + 0x68]
mov edi, dword [esp + 0x50]
mov dword [eax + ecx*4 + 0x10], 0
mov byte [eax + ecx*4 + 1], 0
lea ecx, [eax + ecx*4]
mov eax, dword [esp + 0x54]
mov byte [ecx], al
xor eax, eax
mov word [ecx + 2], ax
mov eax, dword [esp + 0x68]
add eax, dword [esp + 0x88]
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x38]
mov dword [ecx + 8], eax
mov eax, dword [esp + 0x2c]
add eax, dword [esp + 0x4c]
mov dword [ecx + 0xc], eax
mov ecx, dword [edi]
cmp byte [ecx + 0x51], 0
je 0x4d7885
push esi
mov edx, 0xfffffffe
call fcn.004a2d50
add esp, 4
jmp 0x4d78b9
test edx, edx
jns 0x4d788d
mov edx, dword [edi + 0x6c]
dec edx
mov eax, dword [edi + 0x68]
lea ecx, [edx + edx*4]
cmp byte [eax + ecx*4 + 1], 0
lea eax, [eax + ecx*4]
je 0x4d78ae
push 0xfffffffffffffffe
push esi
mov edx, eax
mov ecx, edi
call fcn.004a2ee0
add esp, 8
jmp 0x4d78b9
test esi, esi
je 0x4d78b9
mov dword [eax + 0x10], esi
mov byte [eax + 1], 0xfe
mov eax, dword [edi + 0x6c]
test eax, eax
jle 0x4d78d0
lea ecx, [eax + eax*4]
mov edx, 0x90
mov eax, dword [edi + 0x68]
mov word [eax + ecx*4 - 0x12], dx
mov esi, dword [esp + 0x40]
mov edx, dword [esp + 0x2c]
inc edx
mov dword [esp + 0x2c], edx
movzx eax, word [esi + 0x32]
cmp edx, eax
jl 0x4d7730
mov esi, dword [esp + 0x28]
lea eax, [esi - 1]
cmp eax, 5
ja case.0x4d78f9.5
jmp dword [eax*4 + 0x4d7cd0]
push dword [esp + 0x1c]
mov edx, esi
mov esi, dword [esp + 0x18]
mov ecx, esi
call fcn.004cc200
add esp, 4
jmp 0x4d7a83
mov eax, dword [esp + 0x24]
add eax, dword [ebp + 0x10]
mov esi, dword [esp + 0x14]
mov ecx, esi
mov edx, dword [esp + 0x5c]
push eax
push dword [esp + 0x20]
push dword [esp + 0x20]
call fcn.004ee120
add esp, 0xc
jmp 0x4d7941
mov esi, dword [esp + 0x14]
mov ecx, dword [edi + 0x6c]
cmp dword [edi + 0x70], ecx
jg 0x4d7964
push 0
push dword [ebp + 0x24]
mov edx, 0xb
mov ecx, edi
push 0
call fcn.004a2040
add esp, 0xc
jmp 0x4d7a83
mov edx, dword [ebp + 0x24]
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], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
jmp 0x4d7a83
mov eax, dword [esp + 0x60]
xor esi, esi
mov eax, dword [eax + 0x20]
and eax, 0x2000
or eax, esi
je 0x4d79f6
mov ecx, dword [esp + 0x14]
xor edx, edx
mov eax, dword [ecx]
mov eax, dword [eax + 0x20]
and eax, 0x40000
or eax, edx
je 0x4d79cc
mov edx, dword [esp + 0x18]
call fcn.004e9a70
mov edx, eax
mov ecx, edx
test edx, edx
je 0x4d79e5
cmp byte [ecx + 8], 0x7c
jne 0x4d79de
movzx eax, byte [ecx + 9]
or esi, eax
mov ecx, dword [ecx + 0x20]
test ecx, ecx
jne 0x4d79d2
xor ecx, ecx
test esi, esi
cmovne ecx, edx
mov dword [esp + 0x4c], ecx
mov esi, ecx
test ecx, ecx
jne 0x4d7a2f
mov eax, dword [esp + 0x14]
mov eax, dword [eax]
mov eax, dword [eax + 0x20]
and eax, 0x4000
or eax, 0
je 0x4d7a3f
mov eax, dword [esp + 0x18]
push 0
mov ecx, dword [eax + 0x48]
mov edx, dword [eax]
add ecx, 0x38
call fcn.004853a0
add esp, 4
cmp dword [eax + 8], 0
jne 0x4d7a2f
mov eax, dword [esp + 0x18]
cmp dword [eax + 0x10], 0
je 0x4d7a3f
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx + 0x74]
test eax, eax
cmovne ecx, eax
mov byte [ecx + 0x14], 1
mov edx, dword [ebp + 0x10]
mov eax, dword [esp + 0x24]
add eax, edx
push eax
mov eax, dword [esp + 0x44]
cmp dword [esp + 0x20], eax
sete al
movzx eax, al
push eax
push 5
push 0
push dword [esp + 0x74]
push dword [esp + 0x34]
push edx
push dword [ebp + 0xc]
mov edx, dword [esp + 0x38]
push esi
mov esi, dword [esp + 0x38]
mov ecx, esi
call fcn.004ce530
add esp, 0x24
mov dword [esp + 0x74], 1
mov eax, dword [esp + 0x6c]
cmp eax, dword [esp + 0x1c]
jne 0x4d7b18
mov edx, dword [esp + 0x70]
mov ecx, dword [edi + 0x6c]
inc edx
cmp dword [edi + 0x70], ecx
jg 0x4d7ab4
push 0
push edx
push 0
mov edx, 0xb
mov ecx, edi
call fcn.004a2040
add esp, 0xc
jmp 0x4d7ae7
mov esi, 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], 0xb
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esp + 0x7c]
mov ecx, eax
mov edx, dword [edi + 0x6c]
test eax, eax
jns 0x4d7af7
lea ecx, [edx - 1]
mov eax, dword [edi]
cmp byte [eax + 0x51], 0
je 0x4d7b09
mov eax, 0x71d19c
mov dword [eax + 8], edx
jmp 0x4d7b3f
mov eax, dword [edi + 0x68]
lea ecx, [ecx + ecx*4]
mov dword [eax + ecx*4 + 8], edx
lea eax, [eax + ecx*4]
jmp 0x4d7b3f
mov ecx, dword [edi + 0xc]
mov edx, dword [esp + 0x34]
not edx
mov eax, dword [ecx + 0x3c]
add eax, dword [ecx + 0x38]
jns 0x4d7b36
push edx
mov edx, edi
call fcn.004a2820
add esp, 4
jmp 0x4d7b3f
mov ecx, dword [ecx + 0x40]
mov eax, dword [edi + 0x6c]
mov dword [ecx + edx*4], eax
mov ecx, dword [esp + 0x20]
cmp ecx, dword [esp + 0x30]
je 0x4d7260
mov eax, dword [esp + 0x64]
cmp eax, 1
jne 0x4d7b7f
test ecx, ecx
je 0x4d7260
mov al, byte [esi + 0x13]
mov edx, dword [esp + 0x3c]
cmp al, 8
jae 0x4d7b76
movzx eax, al
mov dword [esi + eax*4 + 0x94], ecx
inc byte [esi + 0x13]
mov esi, dword [esp + 0x18]
jmp 0x4d7268
cmp eax, dword [esi + 0x1c]
jle 0x4d7260
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], ecx
jmp 0x4d7260
mov esi, dword [esp + 0x18]
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], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [esp + 0x80]
mov edx, dword [edi + 0x6c]
test ecx, ecx
jns 0x4d7bd7
lea ecx, [edx - 1]
mov eax, dword [edi]
cmp byte [eax + 0x51], 0
je 0x4d7be6
mov eax, 0x71d19c
jmp 0x4d7bef
mov eax, dword [edi + 0x68]
lea ecx, [ecx + ecx*4]
lea eax, [eax + ecx*4]
mov dword [eax + 8], edx
test byte [esi + 0x24], 0x20
jne 0x4d7c83
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x3c]
mov esi, dword [ecx + eax*4]
mov eax, dword [esp + 0x18]
mov ecx, dword [edi + 0x6c]
mov dword [esp + 0x88], esi
movsx edx, word [eax + 0x2a]
mov eax, dword [ebp + 0x14]
inc eax
cmp dword [edi + 0x70], ecx
jg 0x4d7c36
push esi
push edx
push eax
mov edx, 0x5c
mov ecx, edi
call fcn.004a2040
add esp, 0xc
jmp 0x4d7c6c
mov esi, dword [esp + 0x88]
lea eax, [ecx + 1]
mov dword [edi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edi + 0x68]
mov edi, dword [ebp + 0x14]
inc edi
mov dword [eax + ecx*4 + 4], edi
mov edi, dword [esp + 0x50]
mov dword [eax + ecx*4], 0x5c
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], esi
mov dword [eax + ecx*4 + 0x10], 0
cmp byte [esp + 0x4b], 0
jne 0x4d7c83
mov edx, dword [esp + 0x18]
mov ecx, edi
push 0
call fcn.004d4a20
add esp, 4
mov ecx, dword [esp + 0x84]
mov eax, dword [esp + 0x74]
pop edi
pop esi
mov dword [ecx], eax
mov ecx, dword [esp + 0xb4]
xor ecx, esp
call fcn.006255fe
mov esp, ebp
pop ebp
ret