Function at 0x40598b
Capabilities:
Allocate or change rwx memory
Link many functions at runtime
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb4
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x38], 0
push 0x2c
call fcn.00406e89
add esp, 4
mov dword [ebp - 0x3c], eax
mov edi, eax
mov esi, 0x40b994
lodsd eax, dword [esi]
stosd dword es:[edi], eax
lodsd eax, dword [esi]
stosd dword es:[edi], eax
xor eax, eax
mov ecx, 9
rep stosd dword es:[edi], eax
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x4c], 0
jmp 0x405a48
cmp dword [ebp + 8], 0
jne 0x405a5c
mov eax, 0
jmp 0x406b07
push dword [ebp + 8]
call fcn.00406b2b
mov dword [ebp - 0x54], eax
cmp word [ebp - 0x54], 0x5a4d
je 0x405a7d
mov eax, 0
jmp 0x406b07
fild dword [ebp + 8]
fstp qword [ebp - 0x54]
fld qword [ebp - 0x54]
fadd qword [0x40b60e]
fstp qword [ebp - 0x5c]
fld qword [ebp - 0x5c]
call fcn.00402b5b
push eax
call fcn.00406b65
mov dword [ebp - 4], eax
fild dword [ebp + 8]
fstp qword [ebp - 0x54]
fld qword [ebp - 0x54]
fild dword [ebp - 4]
fstp qword [ebp - 0x5c]
fadd qword [ebp - 0x5c]
fstp qword [ebp - 0x64]
fld qword [ebp - 0x64]
call fcn.00402b5b
push eax
call fcn.00406b65
mov dword [ebp - 0x6c], eax
cmp dword [ebp - 0x6c], 0x4550
je 0x405add
mov eax, 0
jmp 0x406b07
mov dword [ebp - 0x50], esp
push str.kernel32.dll
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
nop
nop
nop
nop
cmp dword [ebp - 0x50], esp
je 0x405b01
push 6
call fcn.00406e77
add esp, 4
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x405b18
mov eax, 0
jmp 0x406b07
mov dword [ebp - 0x50], esp
push 0x40b616
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
nop
nop
nop
nop
cmp dword [ebp - 0x50], esp
je 0x405b3f
push 6
call fcn.00406e77
add esp, 4
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x405b56
mov eax, 0
jmp 0x406b07
mov dword [ebp - 0x50], esp
push str.GetModuleHandleA
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
nop
nop
nop
nop
cmp dword [ebp - 0x50], esp
je 0x405b7d
push 6
call fcn.00406e77
add esp, 4
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x405b94
mov eax, 0
jmp 0x406b07
mov dword [ebp - 0x50], esp
push str.GetProcAddress
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
nop
nop
nop
nop
cmp dword [ebp - 0x50], esp
je 0x405bbb
push 6
call fcn.00406e77
add esp, 4
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x405bd2
mov eax, 0
jmp 0x406b07
mov dword [ebp - 0x50], esp
push str.LoadLibraryA
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
nop
nop
nop
nop
cmp dword [ebp - 0x50], esp
je 0x405bf9
push 6
call fcn.00406e77
add esp, 4
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x405c10
mov eax, 0
jmp 0x406b07
mov dword [ebp - 0x50], esp
push str.VirtualProtect
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
nop
nop
nop
nop
cmp dword [ebp - 0x50], esp
je 0x405c37
push 6
call fcn.00406e77
add esp, 4
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x405c4e
mov eax, 0
jmp 0x406b07
lea eax, [ebp - 0x20]
push eax
call fcn.0040596f
mov dword [ebp - 0x50], eax
push 1
push dword [ebp - 0x1c]
push dword [ebp - 0x50]
call fcn.00405484
cmp byte [ebp - 0x20], 0xe9
jne 0x405c84
push 6
push dword [ebp - 0x1c]
call fcn.0040592e
mov dword [ebp - 0x1c], eax
fild dword [ebp + 8]
fstp qword [ebp - 0x54]
fld qword [ebp - 0x54]
fild dword [ebp - 4]
fstp qword [ebp - 0x5c]
fadd qword [ebp - 0x5c]
fadd qword [0x40b65e]
fstp qword [ebp - 0x64]
fld qword [ebp - 0x64]
call fcn.00402b5b
push eax
call fcn.00406b65
mov dword [ebp - 0x70], eax
fild dword [ebp - 0x70]
fstp qword [ebp - 0x70]
fld qword [ebp - 0x70]
fadd qword [0x40b666]
fstp qword [ebp - 0x78]
mov dword [ebp - 0x7c], esp
push 4
push 0x1000
fld qword [ebp - 0x78]
call fcn.00402b5b
push eax
push 0
call dword [sym.imp.KERNEL32.DLL_VirtualAlloc]
nop
nop
nop
nop
cmp dword [ebp - 0x7c], esp
je 0x405cf9
push 6
call fcn.00406e77
add esp, 4
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x405d10
mov eax, 0
jmp 0x406b07
fild dword [ebp + 8]
fstp qword [ebp - 0x54]
fld qword [ebp - 0x54]
fild dword [ebp - 4]
fstp qword [ebp - 0x5c]
fadd qword [ebp - 0x5c]
fadd qword [0x40b66e]
fstp qword [ebp - 0x64]
fld qword [ebp - 0x64]
call fcn.00402b5b
push eax
call fcn.00406b65
push eax
push dword [ebp + 8]
push dword [ebp - 0x24]
call fcn.00405484
fild dword [ebp + 8]
fstp qword [ebp - 0x54]
fld qword [ebp - 0x54]
fild dword [ebp - 4]
fstp qword [ebp - 0x5c]
fadd qword [ebp - 0x5c]
fadd qword [0x40b676]
fstp qword [ebp - 0x64]
fld qword [ebp - 0x64]
call fcn.00402b5b
push eax
call fcn.00406b2b
mov word [ebp - 0x28], ax
mov dword [ebp - 0x2c], 0
mov eax, dword [ebp - 0x28]
cwde
cmp dword [ebp - 0x2c], eax
jge 0x405ebc
fild dword [ebp - 0x2c]
fstp qword [ebp - 0x54]
fld qword [ebp - 0x54]
fmul qword [0x40b67e]
fstp qword [ebp - 0x5c]
fild dword [ebp - 4]
fstp qword [ebp - 0x64]
fld qword [ebp - 0x64]
fadd qword [ebp - 0x5c]
fadd qword [0x40b686]
fstp qword [ebp - 0x6c]
fld qword [ebp - 0x6c]
call fcn.00402b5b
mov dword [ebp - 0x30], eax
fild dword [ebp + 8]
fstp qword [ebp - 0x54]
fld qword [ebp - 0x54]
fild dword [ebp - 0x30]
fstp qword [ebp - 0x5c]
fadd qword [ebp - 0x5c]
fadd qword [0x40b68e]
fstp qword [ebp - 0x64]
fld qword [ebp - 0x64]
call fcn.00402b5b
push eax
call fcn.00406b65
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
je 0x405eb4
fild dword [ebp + 8]
fstp qword [ebp - 0x54]
fld qword [ebp - 0x54]
fild dword [ebp - 0x30]
fstp qword [ebp - 0x5c]
fadd qword [ebp - 0x5c]
fadd qword [0x40b696]
fstp qword [ebp - 0x64]
fld qword [ebp - 0x64]
call fcn.00402b5b
push eax
call fcn.00406b65
mov dword [ebp - 0x68], eax
fild dword [ebp - 0x24]
fstp qword [ebp - 0x70]
fld qword [ebp - 0x70]
fild dword [ebp - 0x68]
fstp qword [ebp - 0x78]
fadd qword [ebp - 0x78]
fstp qword [ebp - 0x80]
fild dword [ebp + 8]
fstp qword [ebp - 0x88]
fld qword [ebp - 0x88]
fild dword [ebp - 0x30]
fstp qword [ebp - 0x90]
fadd qword [ebp - 0x90]
fadd qword [0x40b69e]
fstp qword [ebp - 0x98]
fld qword [ebp - 0x98]
call fcn.00402b5b
push eax
call fcn.00406b65
mov dword [ebp - 0x9c], eax
fild dword [ebp + 8]
fstp qword [ebp - 0xa4]
fld qword [ebp - 0xa4]
fild dword [ebp - 0x9c]
fstp qword [ebp - 0xac]
fadd qword [ebp - 0xac]
fstp qword [ebp - 0xb4]
push dword [ebp - 0x34]
fld qword [ebp - 0xb4]
call fcn.00402b5b
push eax
fld qword [ebp - 0x80]
call fcn.00402b5b
push eax
call fcn.00405484
inc dword [ebp - 0x2c]
jmp 0x405d79
mov dword [ebp - 0x50], esp
push 0x40
push 0x1000
push 0x278
push 0
call dword [sym.imp.KERNEL32.DLL_VirtualAlloc]
nop
nop
nop
nop
cmp dword [ebp - 0x50], esp
je 0x405eef
push 6
call fcn.00406e77
add esp, 4
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
jne 0x405f32
mov dword [ebp - 0x50], esp
push 0x8000
push 0
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.DLL_VirtualFree]
nop
nop
nop
nop
cmp dword [ebp - 0x50], esp
je 0x405f28
push 6
call fcn.00406e77
add esp, 4
mov eax, 0
jmp 0x406b07
mov ebx, dword [ebp - 0x3c]
call fcn.0040549e
mov eax, 0
cmp eax, ecx
jl 0x405f50
push 1
call fcn.00406e77
add esp, 4
shl eax, 2
add ebx, eax
mov dword [ebp - 0x50], ebx
fild dword [ebp - 0x18]
fstp qword [ebp - 0x58]
fld qword [ebp - 0x58]
fild dword [ebp - 0x38]
fstp qword [ebp - 0x60]
fsub qword [ebp - 0x60]
fsub qword [0x40b6a6]
fstp qword [ebp - 0x68]
fld qword [ebp - 0x68]
call fcn.00402b5b
mov ebx, dword [ebp - 0x50]
mov dword [ebx], eax
mov ebx, dword [ebp - 0x3c]
call fcn.0040549e
mov eax, 1
cmp eax, ecx
jl 0x405f9e
push 1
call fcn.00406e77
add esp, 4
shl eax, 2
add ebx, eax
mov dword [ebp - 0x50], ebx
fild dword [ebp - 0x14]
fstp qword [ebp - 0x58]
fld qword [ebp - 0x58]
fild dword [ebp - 0x38]
fstp qword [ebp - 0x60]
fsub qword [ebp - 0x60]
fsub qword [0x40b6ae]
fstp qword [ebp - 0x68]
fld qword [ebp - 0x68]
call fcn.00402b5b
mov ebx, dword [ebp - 0x50]
mov dword [ebx], eax
mov ebx, dword [ebp - 0x3c]
call fcn.0040549e
mov eax, 2
cmp eax, ecx
jl 0x405fec
push 1
call fcn.00406e77
add esp, 4
shl eax, 2
add ebx, eax
mov dword [ebp - 0x50], ebx
fild dword [ebp - 0xc]
fstp qword [ebp - 0x58]
fld qword [ebp - 0x58]
fild dword [ebp - 0x38]
fstp qword [ebp - 0x60]
fsub qword [ebp - 0x60]
fsub qword [0x40b6b6]
fstp qword [ebp - 0x68]
fld qword [ebp - 0x68]
call fcn.00402b5b
mov ebx, dword [ebp - 0x50]
mov dword [ebx], eax
mov ebx, dword [ebp - 0x3c]
call fcn.0040549e
mov eax, 3
cmp eax, ecx
jl 0x40603a
push 1
call fcn.00406e77
add esp, 4
shl eax, 2
add ebx, eax
mov dword [ebp - 0x50], ebx
fild dword [ebp - 0x10]
fstp qword [ebp - 0x58]
fld qword [ebp - 0x58]
fild dword [ebp - 0x38]
fstp qword [ebp - 0x60]
fsub qword [ebp - 0x60]
fsub qword [0x40b6be]
fstp qword [ebp - 0x68]
fld qword [ebp - 0x68]
call fcn.00402b5b
mov ebx, dword [ebp - 0x50]
mov dword [ebx], eax
mov ebx, dword [ebp - 0x3c]
call fcn.0040549e
mov eax, 4
cmp eax, ecx
jl 0x406088
push 1
call fcn.00406e77
add esp, 4
shl eax, 2
add ebx, eax
mov dword [ebp - 0x50], ebx
fild dword [ebp - 0xc]
fstp qword [ebp - 0x58]
fld qword [ebp - 0x58]
fild dword [ebp - 0x38]
fstp qword [ebp - 0x60]
fsub qword [ebp - 0x60]
fsub qword [0x40b6c6]
fstp qword [ebp - 0x68]
fld qword [ebp - 0x68]
call fcn.00402b5b
mov ebx, dword [ebp - 0x50]
mov dword [ebx], eax
mov ebx, dword [ebp - 0x3c]
call fcn.0040549e
mov eax, 5
cmp eax, ecx
jl 0x4060d6
push 1
call fcn.00406e77
add esp, 4
shl eax, 2
add ebx, eax
mov dword [ebp - 0x50], ebx
fild dword [ebp - 0x1c]
fstp qword [ebp - 0x58]
fld qword [ebp - 0x58]
fild dword [ebp - 0x38]
fstp qword [ebp - 0x60]
fsub qword [ebp - 0x60]
fsub qword [0x40b6ce]
fstp qword [ebp - 0x68]
fld qword [ebp - 0x68]
call fcn.00402b5b
mov ebx, dword [ebp - 0x50]
mov dword [ebx], eax
mov ebx, dword [ebp - 0x3c]
call fcn.0040549e
mov eax, 6
cmp eax, ecx
jl 0x406124
push 1
call fcn.00406e77
add esp, 4
shl eax, 2
add ebx, eax
mov dword [ebp - 0x50], ebx
fild dword [ebp - 0x1c]
fstp qword [ebp - 0x58]
fld qword [ebp - 0x58]
fild dword [ebp - 0x38]
fstp qword [ebp - 0x60]
fsub qword [ebp - 0x60]
fsub qword [0x40b6d6]
fstp qword [ebp - 0x68]
fld qword [ebp - 0x68]
call fcn.00402b5b
mov ebx, dword [ebp - 0x50]
mov dword [ebx], eax
mov ebx, dword [ebp - 0x3c]
call fcn.0040549e
mov eax, 7
cmp eax, ecx
jl 0x406172
push 1
call fcn.00406e77
add esp, 4
shl eax, 2
add ebx, eax
mov dword [ebp - 0x50], ebx
fild dword [ebp - 0x10]
fstp qword [ebp - 0x58]
fld qword [ebp - 0x58]
fild dword [ebp - 0x38]
fstp qword [ebp - 0x60]
fsub qword [ebp - 0x60]
fsub qword [0x40b6de]
fstp qword [ebp - 0x68]
fld qword [ebp - 0x68]
call fcn.00402b5b
mov ebx, dword [ebp - 0x50]
mov dword [ebx], eax
mov ebx, dword [ebp - 0x3c]
call fcn.0040549e
mov eax, 8
cmp eax, ecx
jl 0x4061c0
push 1
call fcn.00406e77
add esp, 4
shl eax, 2
add ebx, eax
mov dword [ebp - 0x50], ebx
fild dword [ebp - 0xc]
fstp qword [ebp - 0x58]
fld qword [ebp - 0x58]
fild dword [ebp - 0x38]
fstp qword [ebp - 0x60]
fsub qword [ebp - 0x60]
fsub qword [0x40b6e6]
fstp qword [ebp - 0x68]
fld qword [ebp - 0x68]
call fcn.00402b5b
mov ebx, dword [ebp - 0x50]
mov dword [ebx], eax
mov eax, 0x40b6ee
test eax, eax
je 0x40620c
push eax
mov eax, dword [eax + 4]
add eax, 8
push eax
call fcn.00406e89
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
push eax
mov ebx, dword [ebp - 0x40]
test ebx, ebx
je 0x40621d
push ebx
call fcn.00406e71
add esp, 4
pop eax
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x40]
push eax
call fcn.0040545f
mov dword [ebp - 0x50], eax
push 0x3d
push dword [ebp - 0x50]
push dword [ebp - 0x38]
call fcn.00405484
mov dword [ebp - 0x44], 0x3d
fild dword [ebp - 0x38]
fstp qword [ebp - 0x54]
fld qword [ebp - 0x54]
fild dword [ebp - 0x44]
fstp qword [ebp - 0x5c]
fadd qword [ebp - 0x5c]
fstp qword [ebp - 0x64]
mov ebx, dword [ebp - 0x3c]
call fcn.0040549e
mov eax, 0
cmp eax, ecx
jl 0x406277
push 1
call fcn.00406e77
add esp, 4
shl eax, 2
add ebx, eax
mov dword [ebp - 0x68], ebx
push dword [ebp - 0x68]
call fcn.0040596f
mov dword [ebp - 0x6c], eax
push 4
push dword [ebp - 0x6c]
fld qword [ebp - 0x64]
call fcn.00402b5b
push eax
call fcn.00405484
add dword [ebp - 0x44], 4
mov eax, 0x40b733
test eax, eax
je 0x4062c0
push eax
mov eax, dword [eax + 4]
add eax, 8
push eax
call fcn.00406e89
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
push eax
mov ebx, dword [ebp - 0x40]
test ebx, ebx
je 0x4062d1
push ebx
call fcn.00406e71
add esp, 4
pop eax
mov dword [ebp - 0x40], eax
fild dword [ebp - 0x38]
fstp qword [ebp - 0x54]
fld qword [ebp - 0x54]
fild dword [ebp - 0x44]
fstp qword [ebp - 0x5c]
fadd qword [ebp - 0x5c]
fstp qword [ebp - 0x64]
lea eax, [ebp - 0x40]
push eax
call fcn.0040545f
mov dword [ebp - 0x68], eax
push 0x3e
push dword [ebp - 0x68]
fld qword [ebp - 0x64]
call fcn.00402b5b
push eax
call fcn.00405484
add dword [ebp - 0x44], 0x3e
fild dword [ebp - 0x38]
fstp qword [ebp - 0x54]
fld qword [ebp - 0x54]
fild dword [ebp - 0x44]
fstp qword [ebp - 0x5c]
fadd qword [ebp - 0x5c]
fstp qword [ebp - 0x64]
mov ebx, dword [ebp - 0x3c]
call fcn.0040549e
mov eax, 1
cmp eax, ecx
jl 0x406343
push 1
call fcn.00406e77
add esp, 4
shl eax, 2
add ebx, eax
mov dword [ebp - 0x68], ebx
push dword [ebp - 0x68]
call fcn.0040596f
mov dword [ebp - 0x6c], eax
push 4
push dword [ebp - 0x6c]
fld qword [ebp - 0x64]
call fcn.00402b5b
push eax
call fcn.00405484
add dword [ebp - 0x44], 4
mov eax, 0x40b779
test eax, eax
je 0x40638c
push eax
mov eax, dword [eax + 4]
add eax, 8
push eax
call fcn.00406e89
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
push eax
mov ebx, dword [ebp - 0x40]
test ebx, ebx
je 0x40639d
push ebx
call fcn.00406e71
add esp, 4
pop eax
mov dword [ebp - 0x40], eax
fild dword [ebp - 0x38]
fstp qword [ebp - 0x54]
fld qword [ebp - 0x54]
fild dword [ebp - 0x44]
fstp qword [ebp - 0x5c]
fadd qword [ebp - 0x5c]
fstp qword [ebp - 0x64]
lea eax, [ebp - 0x40]
push eax
call fcn.0040545f
mov dword [ebp - 0x68], eax
push 0x5a
push dword [ebp - 0x68]
fld qword [ebp - 0x64]
call fcn.00402b5b
push eax
call fcn.00405484
add dword [ebp - 0x44], 0x5a
fild dword [ebp - 0x38]
fstp qword [ebp - 0x54]
fld qword [ebp - 0x54]
fild dword [ebp - 0x44]
fstp qword [ebp - 0x5c]
fadd qword [ebp - 0x5c]
fstp qword [ebp - 0x64]
mov ebx, dword [ebp - 0x3c]
call fcn.0040549e
mov eax, 2
cmp eax, ecx
jl 0x40640f
push 1
call fcn.00406e77
add esp, 4
shl eax, 2
add ebx, eax
mov dword [ebp - 0x68], ebx
push dword [ebp - 0x68]
call fcn.0040596f
mov dword [ebp - 0x6c], eax
push 4
push dword [ebp - 0x6c]
fld qword [ebp - 0x64]
call fcn.00402b5b
push eax
call fcn.00405484
add dword [ebp - 0x44], 4
mov eax, 0x40b7db
test eax, eax
je 0x406458
push eax
mov eax, dword [eax + 4]
add eax, 8
push eax
call fcn.00406e89
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
push eax
mov ebx, dword [ebp - 0x40]
test ebx, ebx
je 0x406469
push ebx
call fcn.00406e71
add esp, 4
pop eax
mov dword [ebp - 0x40], eax
fild dword [ebp - 0x38]
fstp qword [ebp - 0x54]
fld qword [ebp - 0x54]
fild dword [ebp - 0x44]
fstp qword [ebp - 0x5c]
fadd qword [ebp - 0x5c]
fstp qword [ebp - 0x64]
lea eax, [ebp - 0x40]
push eax
call fcn.0040545f
mov dword [ebp - 0x68], eax
push 0x14
push dword [ebp - 0x68]
fld qword [ebp - 0x64]
call fcn.00402b5b
push eax
call fcn.00405484
add dword [ebp - 0x44], 0x14
fild dword [ebp - 0x38]
fstp qword [ebp - 0x54]
fld qword [ebp - 0x54]
fild dword [ebp - 0x44]
fstp qword [ebp - 0x5c]
fadd qword [ebp - 0x5c]
fstp qword [ebp - 0x64]
mov ebx, dword [ebp - 0x3c]
call fcn.0040549e
mov eax, 3
cmp eax, ecx
jl 0x4064db
push 1
call fcn.00406e77
add esp, 4
shl eax, 2
add ebx, eax
mov dword [ebp - 0x68], ebx
push dword [ebp - 0x68]
call fcn.0040596f
mov dword [ebp - 0x6c], eax
push 4
push dword [ebp - 0x6c]
fld qword [ebp - 0x64]
call fcn.00402b5b
push eax
call fcn.00405484
add dword [ebp - 0x44], 4
mov eax, 0x40b7f7
test eax, eax
je 0x406524
push eax
mov eax, dword [eax + 4]
add eax, 8
push eax
call fcn.00406e89
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
push eax
mov ebx, dword [ebp - 0x40]
test ebx, ebx
je 0x406535
push ebx
call fcn.00406e71
add esp, 4
pop eax
mov dword [ebp - 0x40], eax
fild dword [ebp - 0x38]
fstp qword [ebp - 0x54]
fld qword [ebp - 0x54]
fild dword [ebp - 0x44]
fstp qword [ebp - 0x5c]
fadd qword [ebp - 0x5c]
fstp qword [ebp - 0x64]
lea eax, [ebp - 0x40]
push eax
call fcn.0040545f
mov dword [ebp - 0x68], eax
push 6
push dword [ebp - 0x68]
fld qword [ebp - 0x64]
call fcn.00402b5b
push eax
call fcn.00405484
add dword [ebp - 0x44], 6
fild dword [ebp - 0x38]
fstp qword [ebp - 0x54]
fld qword [ebp - 0x54]
fild dword [ebp - 0x44]
fstp qword [ebp - 0x5c]
fadd qword [ebp - 0x5c]
fstp qword [ebp - 0x64]
mov ebx, dword [ebp - 0x3c]
call fcn.0040549e
mov eax, 4
cmp eax, ecx
jl 0x4065a7
push 1
call fcn.00406e77
add esp, 4
shl eax, 2
add ebx, eax
mov dword [ebp - 0x68], ebx
push dword [ebp - 0x68]
call fcn.0040596f
mov dword [ebp - 0x6c], eax
push 4
push dword [ebp - 0x6c]
fld qword [ebp - 0x64]
call fcn.00402b5b
push eax
call fcn.00405484
add dword [ebp - 0x44], 4
mov eax, 0x40b805
test eax, eax
je 0x4065f0
push eax
mov eax, dword [eax + 4]
add eax, 8
push eax
call fcn.00406e89
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
push eax
mov ebx, dword [ebp - 0x40]
test ebx, ebx
je 0x406601
push ebx
call fcn.00406e71
add esp, 4
pop eax
mov dword [ebp - 0x40], eax
fild dword [ebp - 0x38]
fstp qword [ebp - 0x54]
fld qword [ebp - 0x54]
fild dword [ebp - 0x44]
fstp qword [ebp - 0x5c]
fadd qword [ebp - 0x5c]
fstp qword [ebp - 0x64]
lea eax, [ebp - 0x40]
push eax
call fcn.0040545f
mov dword [ebp - 0x68], eax
push 0x6c
push dword [ebp - 0x68]
fld qword [ebp - 0x64]
call fcn.00402b5b
push eax
call fcn.00405484
add dword [ebp - 0x44], 0x6c
fild dword [ebp - 0x38]
fstp qword [ebp - 0x54]
fld qword [ebp - 0x54]
fild dword [ebp - 0x44]
fstp qword [ebp - 0x5c]
fadd qword [ebp - 0x5c]
fstp qword [ebp - 0x64]
mov ebx, dword [ebp - 0x3c]
call fcn.0040549e
mov eax, 5
cmp eax, ecx
jl 0x406673
push 1
call fcn.00406e77
add esp, 4
shl eax, 2
add ebx, eax
mov dword [ebp - 0x68], ebx
push dword [ebp - 0x68]
call fcn.0040596f
mov dword [ebp - 0x6c], eax
push 4
push dword [ebp - 0x6c]
fld qword [ebp - 0x64]
call fcn.00402b5b
push eax
call fcn.00405484
add dword [ebp - 0x44], 4
mov eax, 0x40b879
test eax, eax
je 0x4066bc
push eax
mov eax, dword [eax + 4]
add eax, 8
push eax
call fcn.00406e89
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
push eax
mov ebx, dword [ebp - 0x40]
test ebx, ebx
je 0x4066cd
push ebx
call fcn.00406e71
add esp, 4
pop eax
mov dword [ebp - 0x40], eax
fild dword [ebp - 0x38]
fstp qword [ebp - 0x54]
fld qword [ebp - 0x54]
fild dword [ebp - 0x44]
fstp qword [ebp - 0x5c]
fadd qword [ebp - 0x5c]
fstp qword [ebp - 0x64]
lea eax, [ebp - 0x40]
push eax
call fcn.0040545f
mov dword [ebp - 0x68], eax
push 0x82
push dword [ebp - 0x68]
fld qword [ebp - 0x64]
call fcn.00402b5b
push eax
call fcn.00405484
add dword [ebp - 0x44], 0x82
fild dword [ebp - 0x38]
fstp qword [ebp - 0x54]
fld qword [ebp - 0x54]
fild dword [ebp - 0x44]
fstp qword [ebp - 0x5c]
fadd qword [ebp - 0x5c]
fstp qword [ebp - 0x64]
mov ebx, dword [ebp - 0x3c]
call fcn.0040549e
mov eax, 6
cmp eax, ecx
jl 0x406742
push 1
call fcn.00406e77
add esp, 4
shl eax, 2
add ebx, eax
mov dword [ebp - 0x68], ebx
push dword [ebp - 0x68]
call fcn.0040596f
mov dword [ebp - 0x6c], eax
push 4
push dword [ebp - 0x6c]
fld qword [ebp - 0x64]
call fcn.00402b5b
push eax
call fcn.00405484
add dword [ebp - 0x44], 4
mov eax, 0x40b903
test eax, eax
je 0x40678b
push eax
mov eax, dword [eax + 4]
add eax, 8
push eax
call fcn.00406e89
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
push eax
mov ebx, dword [ebp - 0x40]
test ebx, ebx
je 0x40679c
push ebx
call fcn.00406e71
add esp, 4
pop eax
mov dword [ebp - 0x40], eax
fild dword [ebp - 0x38]
fstp qword [ebp - 0x54]
fld qword [ebp - 0x54]
fild dword [ebp - 0x44]
fstp qword [ebp - 0x5c]
fadd qword [ebp - 0x5c]
fstp qword [ebp - 0x64]
lea eax, [ebp - 0x40]
push eax
call fcn.0040545f
mov dword [ebp - 0x68], eax
push 0x3b
push dword [ebp - 0x68]
fld qword [ebp - 0x64]
call fcn.00402b5b
push eax
call fcn.00405484
add dword [ebp - 0x44], 0x3b
fild dword [ebp - 0x38]
fstp qword [ebp - 0x54]
fld qword [ebp - 0x54]
fild dword [ebp - 0x44]
fstp qword [ebp - 0x5c]
fadd qword [ebp - 0x5c]
fstp qword [ebp - 0x64]
mov ebx, dword [ebp - 0x3c]
call fcn.0040549e
mov eax, 7
cmp eax, ecx
jl 0x40680e
push 1
call fcn.00406e77
add esp, 4
shl eax, 2
add ebx, eax
mov dword [ebp - 0x68], ebx
push dword [ebp - 0x68]
call fcn.0040596f
mov dword [ebp - 0x6c], eax
push 4
push dword [ebp - 0x6c]
fld qword [ebp - 0x64]
call fcn.00402b5b
push eax
call fcn.00405484
add dword [ebp - 0x44], 4
mov eax, 0x40b7f7
test eax, eax
je 0x406857
push eax
mov eax, dword [eax + 4]
add eax, 8
push eax
call fcn.00406e89
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
push eax
mov ebx, dword [ebp - 0x40]
test ebx, ebx
je 0x406868
push ebx
call fcn.00406e71
add esp, 4
pop eax
mov dword [ebp - 0x40], eax
fild dword [ebp - 0x38]
fstp qword [ebp - 0x54]
fld qword [ebp - 0x54]
fild dword [ebp - 0x44]
fstp qword [ebp - 0x5c]
fadd qword [ebp - 0x5c]
fstp qword [ebp - 0x64]
lea eax, [ebp - 0x40]
push eax
call fcn.0040545f
mov dword [ebp - 0x68], eax
push 6
push dword [ebp - 0x68]
fld qword [ebp - 0x64]
call fcn.00402b5b
push eax
call fcn.00405484
add dword [ebp - 0x44], 6
fild dword [ebp - 0x38]
fstp qword [ebp - 0x54]
fld qword [ebp - 0x54]
fild dword [ebp - 0x44]
fstp qword [ebp - 0x5c]
fadd qword [ebp - 0x5c]
fstp qword [ebp - 0x64]
mov ebx, dword [ebp - 0x3c]
call fcn.0040549e
mov eax, 8
cmp eax, ecx
jl 0x4068da
push 1
call fcn.00406e77
add esp, 4
shl eax, 2
add ebx, eax
mov dword [ebp - 0x68], ebx
push dword [ebp - 0x68]
call fcn.0040596f
mov dword [ebp - 0x6c], eax
push 4
push dword [ebp - 0x6c]
fld qword [ebp - 0x64]
call fcn.00402b5b
push eax
call fcn.00405484
add dword [ebp - 0x44], 4
mov eax, 0x40b946
test eax, eax
je 0x406923
push eax
mov eax, dword [eax + 4]
add eax, 8
push eax
call fcn.00406e89
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
push eax
mov ebx, dword [ebp - 0x40]
test ebx, ebx
je 0x406934
push ebx
call fcn.00406e71
add esp, 4
pop eax
mov dword [ebp - 0x40], eax
fild dword [ebp - 0x38]
fstp qword [ebp - 0x54]
fld qword [ebp - 0x54]
fild dword [ebp - 0x44]
fstp qword [ebp - 0x5c]
fadd qword [ebp - 0x5c]
fstp qword [ebp - 0x64]
lea eax, [ebp - 0x40]
push eax
call fcn.0040545f
mov dword [ebp - 0x68], eax
push 0x16
push dword [ebp - 0x68]
fld qword [ebp - 0x64]
call fcn.00402b5b
push eax
call fcn.00405484
add dword [ebp - 0x44], 0x16
mov eax, 0x40b964
test eax, eax
je 0x40698f
push eax
mov eax, dword [eax + 4]
add eax, 8
push eax
call fcn.00406e89
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
push eax
mov ebx, dword [ebp - 0x40]
test ebx, ebx
je 0x4069a0
push ebx
call fcn.00406e71
add esp, 4
pop eax
mov dword [ebp - 0x40], eax
fild dword [ebp - 0x38]
fstp qword [ebp - 0x54]
fld qword [ebp - 0x54]
fild dword [ebp - 0x44]
fstp qword [ebp - 0x5c]
fadd qword [ebp - 0x5c]
fstp qword [ebp - 0x64]
lea eax, [ebp - 0x40]
push eax
call fcn.0040545f
mov dword [ebp - 0x68], eax
push 0x20
push dword [ebp - 0x68]
fld qword [ebp - 0x64]
call fcn.00402b5b
push eax
call fcn.00405484
push dword [ebp - 0x38]
push dword [ebp - 0x24]
call fcn.00406b9f
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x48], 1
je 0x406a55
mov dword [ebp - 0x50], esp
push 0x8000
push 0
push dword [ebp - 0x38]
call dword [sym.imp.KERNEL32.DLL_VirtualFree]
nop
nop
nop
nop
cmp dword [ebp - 0x50], esp
je 0x406a1f
push 6
call fcn.00406e77
add esp, 4
mov dword [ebp - 0x50], esp
push 0x8000
push 0
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.DLL_VirtualFree]
nop
nop
nop
nop
cmp dword [ebp - 0x50], esp
je 0x406a4b
push 6
call fcn.00406e77
add esp, 4
mov eax, 0
jmp 0x406b07
fild dword [ebp - 0x38]
fstp qword [ebp - 0x54]
fld qword [ebp - 0x54]
fadd qword [0x40b98c]
fstp qword [ebp - 0x5c]
fld qword [ebp - 0x5c]
call fcn.00402b5b
mov dword [ebp - 0x4c], eax
push dword [ebp - 0x4c]
push dword [ebp - 0x24]
call fcn.00406b9f
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x50], esp
push 0x8000
push 0
push dword [ebp - 0x38]
call dword [sym.imp.KERNEL32.DLL_VirtualFree]
nop
nop
nop
nop
cmp dword [ebp - 0x50], esp
je 0x406aac
push 6
call fcn.00406e77
add esp, 4
mov dword [ebp - 0x58], eax
cmp dword [ebp - 0x58], 0
jne 0x406aef
mov dword [ebp - 0x50], esp
push 0x8000
push 0
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.DLL_VirtualFree]
nop
nop
nop
nop
cmp dword [ebp - 0x50], esp
je 0x406ae5
push 6
call fcn.00406e77
add esp, 4
mov eax, 0
jmp 0x406b07
mov eax, dword [ebp - 0x24]
jmp 0x406b07
push eax
mov ebx, dword [ebp - 0x3c]
push ebx
call fcn.00406e71
add esp, 4
mov ebx, dword [ebp - 0x40]
test ebx, ebx
je 0x406b24
push ebx
call fcn.00406e71
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 4