Function at 0x45ec40
Capabilities:
Access peb ldr_data
Delete file
Get file size
Get number of processors
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x47ade2
mov eax, dword fs:[0]
push eax
mov eax, 0x204c
call fcn.00472150
mov eax, dword [0x49eef8]
xor eax, esp
mov dword [esp + 0x2048], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x49eef8]
xor eax, esp
push eax
lea eax, [esp + 0x2060]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [0x49f474]
mov edx, dword [eax + 0xc]
mov ecx, 0x49f474
mov dword [esp + 0x2068], 1
call edx
add eax, 0x10
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x2070]
mov ecx, dword [esp + 0x2078]
push eax
push ecx
lea edx, [esp + 0x1c]
push str._s_s.xml
push edx
mov byte [esp + 0x2078], 2
call fcn.00402e10
push 0x4000
call fcn.00463e98
add esp, 0x14
push 0x47dd68
lea ecx, [esp + 0x24]
mov ebp, eax
call fcn.004062a0
mov eax, dword [0x49f474]
mov edx, dword [eax + 0xc]
mov ecx, 0x49f474
mov byte [esp + 0x2068], 3
call edx
add eax, 0x10
mov dword [esp + 0x24], eax
mov eax, dword [0x49f474]
mov edx, dword [eax + 0xc]
mov ecx, 0x49f474
mov byte [esp + 0x2068], 4
call edx
add eax, 0x10
mov dword [esp + 0x28], eax
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x2074]
push ecx
mov ecx, esi
mov byte [esp + 0x2070], 5
call fcn.0045da60
mov edx, dword [esp + 0x28]
push edx
lea eax, [esp + 0x28]
push str.ATPROF__s__r_n
push eax
call fcn.0040c950
mov ebx, dword [esp + 0x30]
mov edi, dword [ebx - 0xc]
add esp, 0xc
cmp dword [ebx - 4], 1
jle 0x45ed72
mov ecx, edi
push ecx
lea ecx, [esp + 0x28]
call fcn.00401600
mov ebx, dword [esp + 0x24]
mov eax, dword [esi]
push 0x2710
push edi
push ebx
push eax
call fcn.00421a70
xor edi, edi
cmp eax, edi
jl 0x45f160
mov eax, dword [ebx - 0xc]
push 0x2710
lea edx, [esp + 0x24]
push edx
lea ecx, [esp + 0x34]
push ecx
push ebp
push eax
mov ecx, esi
call fcn.0045eaa0
cmp eax, edi
jne 0x45eeb3
push ebp
call sub.MSVCR90.dll_void___cdecl_operator_delete___void__
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
add esp, 4
mov byte [esp + 0x2068], 4
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x45eddf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebx - 0x10]
mov byte [esp + 0x2068], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45ee03
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov byte [esp + 0x2068], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45ee2b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov byte [esp + 0x2068], 1
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45ee53
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x2070]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov byte [esp + 0x2068], 0
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45ee7e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x2078]
add eax, 0xfffffff0
mov dword [esp + 0x2068], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45eeac
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x45f377
cmp dword [esp + 0x2c], edi
jne 0x45ef24
mov ebx, dword [ebx - 0xc]
push 0x2710
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x34]
push edx
push ebp
push ebx
mov ecx, esi
call fcn.0045eaa0
cmp eax, edi
jne 0x45ef24
push ebp
call sub.MSVCR90.dll_void___cdecl_operator_delete___void__
add esp, 4
lea ecx, [esp + 0x28]
call fcn.00401e00
lea ecx, [esp + 0x24]
call fcn.00401e00
lea ecx, [esp + 0x20]
call fcn.00401e00
lea ecx, [esp + 0x14]
call fcn.00401e00
lea ecx, [esp + 0x2070]
call fcn.00401e00
lea ecx, [esp + 0x2078]
call fcn.00401e00
xor eax, eax
jmp 0x45f377
mov dword [esp + 0x18], edi
jmp 0x45ef30
mov eax, dword [edi + 0x48a954]
push eax
lea ecx, [esp + 0x20]
call fcn.00408d70
push eax
lea ecx, [esp + 0x24]
push ecx
call fcn.00406930
mov bl, al
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
add esp, 8
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x45ef70
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
jne 0x45ef82
inc dword [esp + 0x18]
add edi, 0xc
cmp edi, 0x24
jb 0x45ef30
jmp 0x45efb0
mov edi, dword [esp + 0x18]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea edi, [edi + edi*2]
add edi, edi
mov ecx, dword [edi + edi + 0x48a958]
add edi, edi
push ecx
lea edx, [esp + 0x38]
push edx
call ebx
mov eax, dword [edi + 0x48a95c]
push eax
lea ecx, [esp + 0x4c]
push ecx
call ebx
xor ebx, ebx
cmp dword [esp + 0x2074], ebx
jne 0x45f07b
mov edx, dword [esp + 0x14]
push ebx
push ebx
push 3
push ebx
push ebx
push SysReAllocStringLen
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x45efed
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [esp + 0x2c]
cmp ebx, edi
jne 0x45f07f
lea eax, [esp + 0x48]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x45f000
mov ecx, dword [esi]
push 0x2710
sub eax, edx
push eax
lea eax, [esp + 0x50]
push eax
push ecx
call fcn.00421a70
test eax, eax
jl 0x45f160
mov esi, dword [esi]
push 1
lea ecx, [esp + 0x20]
push ecx
push 0x2710
lea edx, [esp + 0x24]
push edx
push 0x2000
lea eax, [esp + 0x70]
push eax
push esi
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], fcn.0045cb70
call fcn.00421b20
mov eax, dword [esp + 0x44]
add eax, 0xfffffff0
add esp, 0x1c
mov byte [esp + 0x2068], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x45f299
mov edi, dword [esp + 0x2c]
push str.__
lea ecx, [esp + 0x1c]
call fcn.00408d70
lea ecx, [esp + 0x14]
push ecx
push eax
lea edx, [esp + 0x24]
mov bl, 6
push edx
mov byte [esp + 0x2074], bl
call fcn.0040eae0
add esp, 0xc
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x206c], 7
call fcn.004043f0
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0x2068], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45f0e2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0x2068], 5
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45f10a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x14]
push 0
push 0x80
push 2
push 0
push 2
push 0x40000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x45f194
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea edx, [esp + 0x20]
push edx
mov ecx, esi
call fcn.0045d8d0
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, ebx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45f160
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
mov byte [esp + 0x2068], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45f188
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
jmp 0x45ede2
mov dword [esp + 0x18], edi
test edi, edi
jle 0x45f22e
lea eax, [esp + 0x34]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x45f1a7
mov ecx, dword [esi]
push 0x2710
sub eax, edx
push eax
lea edx, [esp + 0x3c]
push edx
push ecx
call fcn.00421a70
test eax, eax
jl 0x45f160
push 0x4000
push 0
push ebp
call sub.MSVCR90.dll_memset
add esp, 0xc
push 0x2710
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x24]
push ecx
push 0x4000
push ebp
mov ecx, esi
call fcn.0045ea30
cmp eax, 1
jne 0x45f3a1
mov edi, dword [esp + 0x2c]
mov eax, dword [esp + 0x1c]
push 0
lea edx, [esp + 0x34]
push edx
push edi
push eax
push ebx
mov dword [esp + 0x44], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 0x18]
sub eax, edi
mov dword [esp + 0x18], eax
test eax, eax
jg 0x45f1a0
lea eax, [esp + 0x34]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x45f235
mov ecx, dword [esi]
push 0x2710
sub eax, edx
push eax
lea edx, [esp + 0x3c]
push edx
push ecx
call fcn.00421a70
test eax, eax
jl 0x45f160
push 0x2710
lea ecx, [esp + 0x20]
push ecx
push 0x64
push ebp
mov ecx, esi
call fcn.0045cd70
push ebp
call sub.MSVCR90.dll_void___cdecl_operator_delete___void__
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
mov byte [esp + 0x2068], 4
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x45f2a5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov byte [esp + 0x2068], 3
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45f2cd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov byte [esp + 0x2068], 2
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45f2f5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov byte [esp + 0x2068], 1
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45f31d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x2070]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov byte [esp + 0x2068], 0
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45f348
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x2078]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov dword [esp + 0x2068], edx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45f372
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x2060]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x2048]
xor ecx, esp
call fcn.00472076
add esp, 0x2058
ret 0xc
push ebp
call sub.MSVCR90.dll_void___cdecl_operator_delete___void__
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
mov byte [esp + 0x2068], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45f3e4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
mov byte [esp + 0x2068], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45f40c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov byte [esp + 0x2068], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45f434
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi - 0x10]
jmp 0x45ee32