Function at 0x406f70
Capabilities:
Enumerate pe sections
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
mov dword [ebp - 0x50], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x44], 0
cmp dword [ebp + 8], 0
je 0x406f9e
mov eax, dword [ebp + 8]
movsx ecx, byte [eax]
test ecx, ecx
jne 0x406fbd
push 0x48a360
call fcn.0046bb20
add esp, 4
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
jne 0x406fbb
xor eax, eax
jmp 0x40808f
jmp 0x406fc3
mov edx, dword [ebp + 8]
mov dword [ebp - 0x34], edx
cmp dword [0x49473c], 0
jne 0x406fd6
push 0
call fcn.0040d870
add esp, 4
cmp dword [0x494740], 0
jne 0x406fe9
push 0
call fcn.0040d8ab
add esp, 4
push 0x538
push 1
call fcn.004697c0
add esp, 8
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x407008
xor eax, eax
jmp 0x40808f
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x48]
push ecx
lea edx, [ebp - 0x3c]
push edx
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 4]
push ecx
lea edx, [ebp - 0x60]
push edx
lea eax, [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x34]
push ecx
call fcn.00409c20
add esp, 0x20
mov edx, dword [ebp - 8]
mov dword [edx + 0x534], eax
mov eax, dword [ebp - 8]
cmp dword [eax + 0x534], 0
jne 0x407058
mov ecx, dword [ebp - 8]
push ecx
call fcn.00469dd0
add esp, 4
xor eax, eax
jmp 0x40808f
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x534]
push eax
call fcn.004093fc
add esp, 4
mov ecx, dword [ebp - 8]
mov dword [ecx + 8], eax
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
mov dword [edx + 0x80], eax
mov ecx, dword [ebp - 8]
mov dword [ecx + 0xa0], 0
mov edx, dword [ebp - 8]
mov dword [edx + 0xa4], 0
mov eax, dword [ebp - 8]
mov dword [eax + 0x4c0], 0
mov ecx, dword [ebp - 8]
mov dword [ecx + 0xa8], 0
mov edx, dword [ebp - 8]
mov dword [edx + 0xac], 0
mov eax, dword [ebp - 8]
mov dword [eax + 0xb4], 0
mov ecx, dword [ebp - 8]
mov dword [ecx + 0xb0], 0
mov edx, dword [ebp - 8]
mov dword [edx + 0x4d8], 0
mov eax, dword [ebp - 8]
mov dword [eax + 0xbc], 0
mov ecx, dword [ebp - 8]
mov dword [ecx], 0
mov edx, dword [ebp - 8]
mov dword [edx + 0xb8], 0
mov eax, dword [ebp - 8]
mov dword [eax + 0xc0], fcn.00404b1c
mov ecx, dword [ebp - 8]
mov dword [ecx + 0xc4], fcn.00404b1c
mov edx, dword [ebp - 8]
mov dword [edx + 0x2c0], fcn.00404b23
mov eax, dword [ebp - 8]
mov dword [eax + 0x2c4], fcn.00404b23
mov dword [ebp - 0x1c], 2
jmp 0x40714d
mov ecx, dword [ebp - 0x1c]
add ecx, 1
mov dword [ebp - 0x1c], ecx
cmp dword [ebp - 0x1c], 0x23
jge 0x407177
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 8]
mov dword [eax + edx*4 + 0xc0], 0x404b2a
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 8]
mov dword [edx + ecx*4 + 0x2c0], 0
jmp 0x407144
mov dword [ebp - 0x1c], 0x23
jmp 0x407189
mov eax, dword [ebp - 0x1c]
add eax, 1
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0x80
jge 0x4071b6
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 8]
mov dword [edx + ecx*4 + 0xc0], fcn.00404b1c
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 8]
mov dword [ecx + eax*4 + 0x2c0], fcn.00404b23
jmp 0x407180
mov edx, dword [ebp - 8]
mov dword [edx + 0x24], 0
mov eax, dword [ebp - 8]
mov dword [eax + 0x78], 0
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x4dc], 0
mov edx, dword [ebp - 8]
mov dword [edx + 0x94], 0
mov eax, dword [ebp - 8]
mov dword [eax + 0x4c8], 0
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x8c], 0
mov edx, dword [ebp - 8]
mov dword [edx + 0x18], 0
mov eax, dword [ebp - 8]
mov dword [eax + 0x68], 0
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x4e0], 0
mov edx, dword [ebp - 8]
mov dword [edx + 0x4f0], 0
mov eax, dword [ebp - 8]
mov dword [eax + 0x4ec], 0
mov ecx, dword [ebp - 8]
mov dword [ecx + 4], 0
mov edx, dword [ebp - 8]
mov dword [edx + 0x44], 0
mov eax, dword [ebp - 8]
mov dword [eax + 0x4f8], 0
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x4f4], 0
mov edx, dword [ebp - 8]
mov dword [edx + 0x4fc], 0
mov eax, dword [ebp - 8]
mov dword [eax + 0x500], 0
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x4cc], 0
mov edx, dword [ebp - 8]
mov dword [edx + 0x4c4], 0
mov eax, dword [ebp - 8]
mov dword [eax + 0x4d0], 0
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x504], 0
mov edx, dword [ebp - 8]
mov dword [edx + 0x508], 1
mov eax, dword [ebp - 8]
mov dword [eax + 0x510], 0
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x514], 0
mov edx, dword [ebp - 8]
mov dword [edx + 0x518], 0
mov eax, dword [ebp - 8]
mov dword [eax + 0x51c], 0
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x520], 0
mov edx, dword [ebp - 8]
mov dword [edx + 0x50c], 0
mov eax, dword [ebp - 8]
mov dword [eax + 0x52c], 0
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x530], 0
mov edx, dword [ebp - 8]
mov dword [edx + 0x48], 0xb
mov eax, dword [ebp - 8]
mov dword [eax + 0x2c], 0x403847
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x4d4], 0x403c1d
mov edx, dword [ebp - 8]
mov dword [edx + 0x7c], 0
mov eax, dword [ebp - 8]
mov dword [eax + 0x524], 0
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x60], 0
mov edx, dword [ebp - 8]
mov dword [edx + 0x5c], 0
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
mov dword [eax + 0x84], ecx
mov edx, dword [ebp - 8]
mov dword [edx + 0x64], 0x493ce8
xor eax, eax
test eax, eax
je 0x4073a9
mov ecx, dword [ebp - 0x50]
push ecx
mov edx, dword [ebp - 8]
push edx
call fcn.00408586
add esp, 8
xor eax, eax
jmp 0x40808f
mov eax, dword [ebp - 8]
push eax
call fcn.00402710
add esp, 4
test eax, eax
jne 0x4073d0
mov ecx, dword [ebp - 0x50]
push ecx
mov edx, dword [ebp - 8]
push edx
call fcn.00408586
add esp, 8
xor eax, eax
jmp 0x40808f
push 0x800
call fcn.004693f0
add esp, 4
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x68], eax
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x68]
mov dword [edx + 0x6c], ecx
mov edx, dword [ebp - 8]
cmp dword [edx + 0x6c], 0
jne 0x40740f
mov eax, dword [ebp - 0x50]
push eax
mov ecx, dword [ebp - 8]
push ecx
call fcn.00408586
add esp, 8
xor eax, eax
jmp 0x40808f
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x68]
add eax, 0x800
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x70], eax
mov edx, dword [ebp - 8]
mov dword [edx + 0x54], 0
mov eax, dword [ebp - 8]
mov dword [eax + 0x50], 0
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x58], 0
push 0x24
push 1
call fcn.004697c0
add esp, 8
mov edx, dword [ebp - 8]
mov dword [edx + 4], eax
mov eax, dword [ebp - 8]
cmp dword [eax + 4], 0
jne 0x407470
mov ecx, dword [ebp - 0x50]
push ecx
mov edx, dword [ebp - 8]
push edx
call fcn.00408586
add esp, 8
xor eax, eax
jmp 0x40808f
mov dword [ebp - 0x5c], 1
movsx eax, byte [ebp - 0x5c]
test eax, eax
je 0x407485
mov byte [ebp - 0x30], 0x6c
jmp 0x407489
mov byte [ebp - 0x30], 0x42
mov word [ebp - 0x2e], 0xb
mov word [ebp - 0x2c], 0
mov cx, word [ebp - 0x3c]
mov word [ebp - 0x2a], cx
mov dx, word [ebp - 0x40]
mov word [ebp - 0x28], dx
lea eax, [ebp - 0x58]
push eax
mov ecx, dword [ebp - 0x48]
push ecx
mov edx, dword [ebp - 0x18]
push edx
lea eax, [ebp - 0x30]
push eax
mov ecx, dword [ebp - 8]
push ecx
call fcn.0040a40e
add esp, 0x14
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x44], 0
jge 0x4074ef
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x534]
push eax
call fcn.0040a3ef
add esp, 4
mov ecx, dword [ebp - 8]
push ecx
call fcn.00469dd0
add esp, 4
xor eax, eax
jmp 0x40808f
cmp dword [ebp - 0x18], 0
je 0x407501
mov edx, dword [ebp - 0x18]
push edx
call fcn.00469dd0
add esp, 4
cmp dword [ebp - 0x48], 0
je 0x407513
mov eax, dword [ebp - 0x48]
push eax
call fcn.00469dd0
add esp, 4
cmp dword [ebp - 0x44], 0
jne 0x40752b
push 8
lea ecx, [ebp - 0x58]
push ecx
mov edx, dword [ebp - 8]
push edx
call fcn.00403161
add esp, 0xc
mov eax, dword [ebp - 0x58]
and eax, 0xff
cmp eax, 1
je 0x407586
mov ecx, dword [ebp - 0x58]
and ecx, 0xff
test ecx, ecx
je 0x407586
mov edx, dword [ebp - 0x58]
and edx, 0xff
push edx
push 0x48a368
push 0x490508
call fcn.00468f60
add esp, 0xc
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x534]
push ecx
call fcn.0040a3ef
add esp, 4
mov edx, dword [ebp - 8]
push edx
call fcn.00469dd0
add esp, 4
xor eax, eax
jmp 0x40808f
mov eax, dword [ebp - 0x56]
and eax, 0xffff
cmp eax, 0xb
je 0x4075d6
mov ecx, dword [ebp - 0x56]
and ecx, 0xffff
push ecx
push 0xb
push 0x48a3a8
push 0x490508
call fcn.00468f60
add esp, 0x10
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x534]
push eax
call fcn.0040a3ef
add esp, 4
mov ecx, dword [ebp - 8]
push ecx
call fcn.00469dd0
add esp, 4
xor eax, eax
jmp 0x40808f
mov edx, dword [ebp - 0x52]
and edx, 0xffff
shl edx, 2
mov dword [ebp - 0x4c], edx
mov eax, dword [ebp - 0x4c]
push eax
call fcn.004693f0
add esp, 4
mov dword [ebp - 0x50], eax
mov ecx, dword [ebp - 0x50]
mov dword [ebp - 0x10], ecx
cmp dword [ebp - 0x10], 0
jne 0x407625
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x534]
push eax
call fcn.0040a3ef
add esp, 4
mov ecx, dword [ebp - 8]
push ecx
call fcn.00469dd0
add esp, 4
xor eax, eax
jmp 0x40808f
mov edx, dword [ebp - 0x4c]
push edx
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 8]
push ecx
call fcn.00403161
add esp, 0xc
mov edx, dword [ebp - 0x58]
and edx, 0xff
cmp edx, 1
je 0x4076a7
mov eax, dword [ebp - 0xc]
push eax
push 0x48a3f0
push 0x490508
call fcn.00468f60
add esp, 0xc
push 0x490508
mov ecx, dword [ebp - 0x57]
and ecx, 0xff
push ecx
push 1
mov edx, dword [ebp - 0x10]
push edx
call fcn.0046be60
add esp, 0x10
push 0x490508
push 2
push 1
push 0x48a424
call fcn.0046be60
add esp, 0x10
mov eax, dword [ebp - 0x50]
push eax
mov ecx, dword [ebp - 8]
push ecx
call fcn.00408586
add esp, 8
xor eax, eax
jmp 0x40808f
mov edx, dword [ebp - 0x56]
and edx, 0xffff
mov eax, dword [ebp - 8]
mov dword [eax + 0x10], edx
mov ecx, dword [ebp - 0x54]
and ecx, 0xffff
mov edx, dword [ebp - 8]
mov dword [edx + 0x14], ecx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx]
mov dword [eax + 0x4c], edx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 4]
mov dword [eax + 0x1c], edx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 8]
mov dword [eax + 0x20], edx
mov eax, dword [ebp - 0x10]
xor ecx, ecx
mov cl, byte [eax + 0x1a]
mov edx, dword [ebp - 8]
mov dword [edx + 0x98], ecx
mov eax, dword [ebp - 0x10]
xor ecx, ecx
mov cl, byte [eax + 0x1b]
mov edx, dword [ebp - 8]
mov dword [edx + 0x9c], ecx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0xc]
mov dword [eax + 0x90], edx
mov eax, dword [ebp - 0x10]
xor ecx, ecx
mov cl, byte [eax + 0x15]
mov edx, dword [ebp - 8]
mov dword [edx + 0x40], ecx
mov eax, dword [ebp - 0x10]
xor ecx, ecx
mov cl, byte [eax + 0x14]
mov edx, dword [ebp - 8]
mov dword [edx + 0x88], ecx
mov eax, dword [ebp - 0x10]
xor ecx, ecx
mov cl, byte [eax + 0x16]
mov edx, dword [ebp - 8]
mov dword [edx + 0x30], ecx
mov eax, dword [ebp - 0x10]
xor ecx, ecx
mov cl, byte [eax + 0x18]
mov edx, dword [ebp - 8]
mov dword [edx + 0x34], ecx
mov eax, dword [ebp - 0x10]
xor ecx, ecx
mov cl, byte [eax + 0x19]
mov edx, dword [ebp - 8]
mov dword [edx + 0x38], ecx
mov eax, dword [ebp - 0x10]
xor ecx, ecx
mov cl, byte [eax + 0x17]
mov edx, dword [ebp - 8]
mov dword [edx + 0x3c], ecx
mov eax, dword [ebp - 0x10]
xor ecx, ecx
mov cx, word [eax + 0x12]
mov edx, dword [ebp - 8]
mov dword [edx + 0x74], ecx
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x20]
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 8]
mov dword [edx + 0x28], 0
mov eax, dword [ebp - 0x24]
and eax, 1
test eax, eax
jne 0x4077b5
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x28]
add edx, 1
mov eax, dword [ebp - 8]
mov dword [eax + 0x28], edx
mov ecx, dword [ebp - 0x24]
shr ecx, 1
mov dword [ebp - 0x24], ecx
jmp 0x407792
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 8]
mov edx, dword [edx + 0x20]
mov ecx, dword [eax + 0x28]
shr edx, cl
sub edx, 5
mov eax, dword [ebp - 8]
mov dword [eax + 0x528], edx
mov ecx, dword [ebp - 0x10]
xor edx, edx
mov dx, word [ecx + 0x10]
add edx, 1
push edx
call fcn.004693f0
add esp, 4
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x18], eax
mov edx, dword [ebp - 8]
cmp dword [edx + 0x18], 0
jne 0x40780a
mov eax, dword [ebp - 0x50]
push eax
mov ecx, dword [ebp - 8]
push ecx
call fcn.00408586
add esp, 8
xor eax, eax
jmp 0x40808f
mov edx, dword [ebp - 0x10]
xor eax, eax
mov ax, word [edx + 0x10]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x10]
add ecx, 0x20
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x18]
push edx
call fcn.0046bd60
add esp, 0xc
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x18]
mov edx, dword [ebp - 0x14]
mov byte [ecx + edx], 0
mov eax, dword [ebp - 0x14]
add eax, 3
and al, 0xfc
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x4c]
sub ecx, 0x20
sub ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0x10]
add edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x50]
push eax
call fcn.0046ad60
add esp, 0xc
mov ecx, dword [ebp - 0x50]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x40]
shl eax, 4
push eax
call fcn.004693f0
add esp, 4
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x44], eax
mov edx, dword [ebp - 8]
cmp dword [edx + 0x44], 0
jne 0x4078a9
mov eax, dword [ebp - 0x50]
push eax
mov ecx, dword [ebp - 8]
push ecx
call fcn.00408586
add esp, 8
xor eax, eax
jmp 0x40808f
mov dword [ebp - 0x1c], 0
jmp 0x4078bb
mov edx, dword [ebp - 0x1c]
add edx, 1
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x1c]
cmp ecx, dword [eax + 0x40]
jge 0x407914
mov edx, dword [ebp - 0x1c]
shl edx, 4
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x44]
add ecx, edx
mov dword [ebp - 0x64], ecx
mov edx, dword [ebp - 0x10]
xor eax, eax
mov al, byte [edx]
mov ecx, dword [ebp - 0x64]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 0x10]
xor eax, eax
mov al, byte [edx + 1]
mov ecx, dword [ebp - 0x64]
mov dword [ecx + 8], eax
mov edx, dword [ebp - 0x10]
xor eax, eax
mov al, byte [edx + 2]
mov ecx, dword [ebp - 0x64]
mov dword [ecx + 0xc], eax
mov edx, dword [ebp - 0x64]
mov dword [edx], 0
mov eax, dword [ebp - 0x10]
add eax, 8
mov dword [ebp - 0x10], eax
jmp 0x4078b2
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x88]
imul edx, edx, 0x50
push edx
call fcn.004693f0
add esp, 4
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x8c], eax
mov edx, dword [ebp - 8]
cmp dword [edx + 0x8c], 0
jne 0x407955
mov eax, dword [ebp - 0x50]
push eax
mov ecx, dword [ebp - 8]
push ecx
call fcn.00408586
add esp, 8
xor eax, eax
jmp 0x40808f
mov dword [ebp - 0x1c], 0
jmp 0x407967
mov edx, dword [ebp - 0x1c]
add edx, 1
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x1c]
cmp ecx, dword [eax + 0x88]
jge 0x407c20
mov edx, dword [ebp - 0x1c]
imul edx, edx, 0x50
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x8c]
add ecx, edx
mov dword [ebp - 0x6c], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x20]
mov dword [ebp - 0x68], eax
mov ecx, dword [ebp - 0x6c]
mov edx, dword [ebp - 8]
mov dword [ecx + 4], edx
mov eax, dword [ebp - 0x6c]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx]
mov dword [eax + 8], edx
mov eax, dword [ebp - 0x6c]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 4]
mov dword [eax + 0x30], edx
mov eax, dword [ebp - 0x6c]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 8]
mov dword [eax + 0x34], edx
mov eax, dword [ebp - 0x6c]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0xc]
mov dword [eax + 0x38], edx
mov eax, dword [ebp - 0x6c]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x10]
mov dword [eax + 0x4c], edx
mov eax, dword [ebp - 0x10]
xor ecx, ecx
mov cx, word [eax + 0x14]
mov edx, dword [ebp - 0x6c]
mov dword [edx + 0xc], ecx
mov eax, dword [ebp - 0x10]
xor ecx, ecx
mov cx, word [eax + 0x16]
mov edx, dword [ebp - 0x6c]
mov dword [edx + 0x10], ecx
mov eax, dword [ebp - 0x10]
xor ecx, ecx
mov cx, word [eax + 0x18]
mov edx, dword [ebp - 0x6c]
mov dword [edx + 0x14], ecx
mov eax, dword [ebp - 0x10]
xor ecx, ecx
mov cx, word [eax + 0x1a]
mov edx, dword [ebp - 0x6c]
mov dword [edx + 0x18], ecx
mov eax, dword [ebp - 0x10]
xor ecx, ecx
mov cx, word [eax + 0x1c]
mov edx, dword [ebp - 0x6c]
mov dword [edx + 0x40], ecx
mov eax, dword [ebp - 0x10]
xor ecx, ecx
mov cx, word [eax + 0x1e]
mov edx, dword [ebp - 0x6c]
mov dword [edx + 0x3c], ecx
mov eax, dword [ebp - 0x10]
xor ecx, ecx
mov cl, byte [eax + 0x24]
mov edx, dword [ebp - 0x6c]
mov dword [edx + 0x44], ecx
mov eax, dword [ebp - 0x10]
xor ecx, ecx
mov cl, byte [eax + 0x25]
mov edx, dword [ebp - 0x6c]
mov dword [edx + 0x48], ecx
mov eax, dword [ebp - 0x10]
xor ecx, ecx
mov cl, byte [eax + 0x26]
mov edx, dword [ebp - 0x6c]
mov dword [edx + 0x24], ecx
mov eax, dword [ebp - 0x10]
xor ecx, ecx
mov cl, byte [eax + 0x27]
mov edx, dword [ebp - 0x6c]
mov dword [edx + 0x1c], ecx
mov eax, dword [ebp - 0x6c]
mov dword [eax], 0
mov ecx, dword [ebp - 0x10]
add ecx, 0x28
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x6c]
mov eax, dword [edx + 0x1c]
imul eax, eax, 0xc
push eax
call fcn.004693f0
add esp, 4
mov ecx, dword [ebp - 0x6c]
mov dword [ecx + 0x20], eax
mov edx, dword [ebp - 0x6c]
cmp dword [edx + 0x20], 0
jne 0x407ab6
mov eax, dword [ebp - 0x50]
push eax
mov ecx, dword [ebp - 8]
push ecx
call fcn.00408586
add esp, 8
xor eax, eax
jmp 0x40808f
mov dword [ebp - 0x20], 0
jmp 0x407ac8
mov edx, dword [ebp - 0x20]
add edx, 1
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0x6c]
mov ecx, dword [ebp - 0x20]
cmp ecx, dword [eax + 0x1c]
jge 0x407c05
mov edx, dword [ebp - 0x20]
imul edx, edx, 0xc
mov eax, dword [ebp - 0x6c]
mov ecx, dword [eax + 0x20]
add ecx, edx
mov dword [ebp - 0x70], ecx
mov edx, dword [ebp - 0x10]
xor eax, eax
mov al, byte [edx]
mov ecx, dword [ebp - 0x70]
mov dword [ecx], eax
mov edx, dword [ebp - 0x10]
xor eax, eax
mov ax, word [edx + 2]
mov ecx, dword [ebp - 0x70]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 0x10]
add edx, 8
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x70]
cmp dword [eax + 4], 0
jle 0x407bf6
mov ecx, dword [ebp - 0x70]
mov edx, dword [ecx + 4]
shl edx, 5
push edx
call fcn.004693f0
add esp, 4
mov ecx, dword [ebp - 0x70]
mov dword [ecx + 8], eax
mov edx, dword [ebp - 0x70]
cmp dword [edx + 8], 0
jne 0x407b51
mov eax, dword [ebp - 0x50]
push eax
mov ecx, dword [ebp - 8]
push ecx
call fcn.00408586
add esp, 8
xor eax, eax
jmp 0x40808f
mov dword [ebp - 0x38], 0
jmp 0x407b63
mov edx, dword [ebp - 0x38]
add edx, 1
mov dword [ebp - 0x38], edx
mov eax, dword [ebp - 0x70]
mov ecx, dword [ebp - 0x38]
cmp ecx, dword [eax + 4]
jge 0x407bf4
mov edx, dword [ebp - 0x38]
shl edx, 5
mov eax, dword [ebp - 0x70]
mov ecx, dword [eax + 8]
add ecx, edx
mov dword [ebp - 0x74], ecx
mov edx, dword [ebp - 0x74]
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
mov dword [edx + 4], ecx
mov edx, dword [ebp - 0x10]
xor eax, eax
mov al, byte [edx + 4]
mov ecx, dword [ebp - 0x74]
mov dword [ecx + 8], eax
mov edx, dword [ebp - 0x10]
xor eax, eax
mov al, byte [edx + 5]
mov ecx, dword [ebp - 0x74]
mov dword [ecx + 0x18], eax
mov edx, dword [ebp - 0x10]
xor eax, eax
mov ax, word [edx + 6]
mov ecx, dword [ebp - 0x74]
mov dword [ecx + 0x1c], eax
mov edx, dword [ebp - 0x74]
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 8]
mov dword [edx + 0xc], ecx
mov edx, dword [ebp - 0x74]
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0xc]
mov dword [edx + 0x10], ecx
mov edx, dword [ebp - 0x74]
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x10]
mov dword [edx + 0x14], ecx
mov edx, dword [ebp - 0x74]
mov dword [edx], 0
mov eax, dword [ebp - 0x10]
add eax, 0x18
mov dword [ebp - 0x10], eax
jmp 0x407b5a
jmp 0x407c00
mov ecx, dword [ebp - 0x70]
mov dword [ecx + 8], 0
jmp 0x407abf
mov edx, dword [ebp - 0x68]
push edx
mov eax, dword [ebp - 8]
push eax
call fcn.004060a5
add esp, 8
mov ecx, dword [ebp - 0x6c]
mov dword [ecx + 0x28], eax
jmp 0x40795e
mov edx, dword [ebp - 0x50]
push edx
call fcn.00469dd0
add esp, 4
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
cmp ecx, dword [eax + 0x88]
jl 0x407c4f
push 0
mov edx, dword [ebp - 8]
push edx
call fcn.00408586
add esp, 8
xor eax, eax
jmp 0x40808f
mov dword [ebp - 0x1c], 0
jmp 0x407c61
mov eax, dword [ebp - 0x1c]
add eax, 1
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x1c]
cmp edx, dword [ecx + 0x88]
jge 0x407ce0
mov eax, dword [ebp - 0x1c]
imul eax, eax, 0x50
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x8c]
add edx, eax
mov dword [ebp - 0x78], edx
mov eax, dword [ebp - 0x78]
mov ecx, dword [eax + 0x38]
mov dword [ebp - 0xcc], ecx
mov edx, dword [ebp - 0x78]
mov eax, dword [edx + 0x34]
mov dword [ebp - 0xc8], eax
lea ecx, [ebp - 0xd4]
push ecx
push 0xc
mov edx, dword [ebp - 0x78]
mov eax, dword [edx + 8]
push eax
mov ecx, dword [ebp - 8]
push ecx
call fcn.0040cce0
add esp, 0x10
mov edx, dword [ebp - 0x78]
mov dword [edx + 0x2c], eax
mov eax, dword [ebp - 0x78]
cmp dword [eax + 0x2c], 0
jne 0x407cdb
push 0
mov ecx, dword [ebp - 8]
push ecx
call fcn.00408586
add esp, 8
xor eax, eax
jmp 0x40808f
jmp 0x407c58
mov edx, dword [0x494738]
push edx
mov eax, dword [ebp - 8]
push eax
call fcn.0040cc35
add esp, 8
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x6c]
add edx, 8
mov eax, dword [ebp - 8]
cmp edx, dword [eax + 0x70]
jbe 0x407d10
mov ecx, dword [ebp - 8]
push ecx
call fcn.00402724
add esp, 4
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x6c]
mov dword [edx + 0x64], ecx
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x64]
mov dword [ebp - 0xdc], eax
mov ecx, dword [ebp - 0xdc]
mov byte [ecx], 0x62
mov edx, dword [ebp - 0xdc]
mov word [edx + 2], 2
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x6c]
add ecx, 8
mov edx, dword [ebp - 8]
mov dword [edx + 0x6c], ecx
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x60]
add ecx, 1
mov edx, dword [ebp - 8]
mov dword [edx + 0x60], ecx
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x60]
mov dword [ebp - 0x104], ecx
mov dword [ebp - 0x100], 0
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x4c8]
mov dword [ebp - 0x134], eax
mov dword [ebp - 0x130], 0x408093
lea ecx, [ebp - 0x104]
mov dword [ebp - 0x12c], ecx
mov edx, dword [ebp - 8]
lea eax, [ebp - 0x134]
mov dword [edx + 0x4c8], eax
mov ecx, dword [ebp - 0xdc]
mov word [ecx + 4], 0xc
mov edx, dword [ebp - 0xdc]
mov ax, word [edx + 2]
add ax, 3
mov ecx, dword [ebp - 0xdc]
mov word [ecx + 2], ax
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x6c]
add eax, 0xc
mov ecx, dword [ebp - 8]
cmp eax, dword [ecx + 0x70]
ja 0x407e01
push 0xc
push 0x48a428
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x6c]
push eax
call fcn.0046b0a0
add esp, 0xc
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x6c]
add edx, 0xc
mov eax, dword [ebp - 8]
mov dword [eax + 0x6c], edx
jmp 0x407e14
push 0xc
push 0x48a438
mov ecx, dword [ebp - 8]
push ecx
call fcn.00403566
add esp, 0xc
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x6c]
add eax, 0x18
mov ecx, dword [ebp - 8]
cmp eax, dword [ecx + 0x70]
jbe 0x407e31
mov edx, dword [ebp - 8]
push edx
call fcn.00402724
add esp, 4
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x6c]
mov dword [eax + 0x64], edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x64]
mov dword [ebp - 0xd8], ecx
mov edx, dword [ebp - 0xd8]
mov byte [edx], 0x14
mov eax, dword [ebp - 0xd8]
mov word [eax + 2], 6
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x6c]
add edx, 0x18
mov eax, dword [ebp - 8]
mov dword [eax + 0x6c], edx
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x60]
add edx, 1
mov eax, dword [ebp - 8]
mov dword [eax + 0x60], edx
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x8c]
mov eax, dword [ebp - 0xd8]
mov ecx, dword [edx + 8]
mov dword [eax + 4], ecx
mov edx, dword [ebp - 0xd8]
mov dword [edx + 8], 0x17
mov eax, dword [ebp - 0xd8]
mov dword [eax + 0xc], 0x1f
mov ecx, dword [ebp - 0xd8]
mov byte [ecx + 1], 0
mov edx, dword [ebp - 0xd8]
mov dword [edx + 0x10], 0
mov eax, dword [ebp - 0xd8]
mov dword [eax + 0x14], 0x5f5e100
push 0
push 0
lea ecx, [ebp - 0xfc]
push ecx
mov edx, dword [ebp - 8]
push edx
call fcn.00403f23
add esp, 0x10
test eax, eax
je 0x407f8e
mov eax, dword [ebp - 0xfb]
and eax, 0xff
cmp eax, 8
jne 0x407f60
cmp dword [ebp - 0xf4], 0x1f
jne 0x407f60
mov ecx, dword [ebp - 0xec]
add ecx, 1
push ecx
call fcn.004693f0
add esp, 4
mov edx, dword [ebp - 8]
mov dword [edx + 0xac], eax
mov eax, dword [ebp - 8]
cmp dword [eax + 0xac], 0
je 0x407f60
mov ecx, dword [ebp - 0xec]
push ecx
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0xac]
push eax
mov ecx, dword [ebp - 8]
push ecx
call fcn.0040344d
add esp, 0xc
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0xac]
mov ecx, dword [ebp - 0xec]
mov byte [eax + ecx], 0
jmp 0x407f8e
cmp dword [ebp - 0xf4], 0
je 0x407f8e
mov edx, dword [ebp - 0xfb]
and edx, 0xff
sar edx, 3
mov eax, dword [ebp - 0xec]
imul eax, edx
push eax
mov ecx, dword [ebp - 8]
push ecx
call fcn.00404944
add esp, 8
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x4c8]
lea ecx, [ebp - 0x134]
cmp eax, ecx
jne 0x407fb2
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x134]
mov dword [edx + 0x4c8], eax
jmp 0x407fc5
lea ecx, [ebp - 0x134]
push ecx
mov edx, dword [ebp - 8]
push edx
call fcn.0040ca14
add esp, 8
cmp dword [ebp - 0x100], 0
je 0x40807c
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x6c]
add ecx, 4
mov edx, dword [ebp - 8]
cmp ecx, dword [edx + 0x70]
jbe 0x407fef
mov eax, dword [ebp - 8]
push eax
call fcn.00402724
add esp, 4
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x6c]
mov dword [ecx + 0x64], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x64]
mov dword [ebp - 0x128], edx
mov eax, dword [ebp - 0x128]
mov byte [eax], 0
mov ecx, dword [ebp - 0x128]
mov word [ecx + 2], 1
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x6c]
add eax, 4
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x6c], eax
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x60]
add eax, 1
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x60], eax
mov edx, dword [ebp - 0x128]
mov al, byte [ebp - 0x100]
mov byte [edx], al
mov ecx, dword [ebp - 0x128]
mov byte [ecx + 1], 0
push 0
push 0
lea edx, [ebp - 0x124]
push edx
mov eax, dword [ebp - 8]
push eax
call fcn.00403f23
add esp, 0x10
test eax, eax
je 0x40807c
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x11c]
mov dword [ecx + 0x4cc], edx
push 0
push 0
mov eax, dword [ebp - 8]
push eax
call fcn.0040b14a
add esp, 0xc
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret