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

Disassembly:
push 0xffffffffffffffff
push 0x47ad12
mov eax, dword fs:[0]
push eax
mov eax, 0x204c
call fcn.00472040
mov eax, dword [0x49ef38]
xor eax, esp
mov dword [esp + 0x2048], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x49ef38]
xor eax, esp
push eax
lea eax, [esp + 0x2060]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [0x49f4e4]
mov edx, dword [eax + 0xc]
mov ecx, 0x49f4e4
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.00402eb0
push 0x4000
call fcn.00463d88
add esp, 0x14
push 0x47dd5c
lea ecx, [esp + 0x24]
mov ebp, eax
call fcn.00406330
mov eax, dword [0x49f4e4]
mov edx, dword [eax + 0xc]
mov ecx, 0x49f4e4
mov byte [esp + 0x2068], 3
call edx
add eax, 0x10
mov dword [esp + 0x24], eax
mov eax, dword [0x49f4e4]
mov edx, dword [eax + 0xc]
mov ecx, 0x49f4e4
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.0045d950
mov edx, dword [esp + 0x28]
push edx
lea eax, [esp + 0x28]
push str.ATPROF__s__r_n
push eax
call fcn.0040c990
mov ebx, dword [esp + 0x30]
mov edi, dword [ebx - 0xc]
add esp, 0xc
cmp dword [ebx - 4], 1
jle 0x45ec62
mov ecx, edi
push ecx
lea ecx, [esp + 0x28]
call fcn.00401610
mov ebx, dword [esp + 0x24]
mov eax, dword [esi]
push 0x2710
push edi
push ebx
push eax
call fcn.00421260
xor edi, edi
cmp eax, edi
jl 0x45f050
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.0045e990
cmp eax, edi
jne 0x45eda3
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 0x45eccf
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 0x45ecf3
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 0x45ed1b
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 0x45ed43
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 0x45ed6e
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 0x45ed9c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x45f267
cmp dword [esp + 0x2c], edi
jne 0x45ee14
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.0045e990
cmp eax, edi
jne 0x45ee14
push ebp
call sub.MSVCR90.dll_void___cdecl_operator_delete___void__
add esp, 4
lea ecx, [esp + 0x28]
call fcn.00401e10
lea ecx, [esp + 0x24]
call fcn.00401e10
lea ecx, [esp + 0x20]
call fcn.00401e10
lea ecx, [esp + 0x14]
call fcn.00401e10
lea ecx, [esp + 0x2070]
call fcn.00401e10
lea ecx, [esp + 0x2078]
call fcn.00401e10
xor eax, eax
jmp 0x45f267
mov dword [esp + 0x18], edi
jmp 0x45ee20
mov eax, dword [edi + 0x48a7d4]
push eax
lea ecx, [esp + 0x20]
call fcn.00408e60
push eax
lea ecx, [esp + 0x24]
push ecx
call fcn.004069b0
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 0x45ee60
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
jne 0x45ee72
inc dword [esp + 0x18]
add edi, 0xc
cmp edi, 0x24
jb 0x45ee20
jmp 0x45eea0
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 + 0x48a7d8]
add edi, edi
push ecx
lea edx, [esp + 0x38]
push edx
call ebx
mov eax, dword [edi + 0x48a7dc]
push eax
lea ecx, [esp + 0x4c]
push ecx
call ebx
xor ebx, ebx
cmp dword [esp + 0x2074], ebx
jne 0x45ef6b
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 0x45eedd
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 0x45ef6f
lea eax, [esp + 0x48]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x45eef0
mov ecx, dword [esi]
push 0x2710
sub eax, edx
push eax
lea eax, [esp + 0x50]
push eax
push ecx
call fcn.00421260
test eax, eax
jl 0x45f050
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.0045ca60
call fcn.00421310
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 0x45f189
mov edi, dword [esp + 0x2c]
push str.__
lea ecx, [esp + 0x1c]
call fcn.00408e60
lea ecx, [esp + 0x14]
push ecx
push eax
lea edx, [esp + 0x24]
mov bl, 6
push edx
mov byte [esp + 0x2074], bl
call fcn.0040ec20
add esp, 0xc
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x206c], 7
call fcn.00404480
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 0x45efd2
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 0x45effa
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 0x45f084
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea edx, [esp + 0x20]
push edx
mov ecx, esi
call fcn.0045d7c0
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 0x45f050
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 0x45f078
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 0x45ecd2
mov dword [esp + 0x18], edi
test edi, edi
jle 0x45f11e
lea eax, [esp + 0x34]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x45f097
mov ecx, dword [esi]
push 0x2710
sub eax, edx
push eax
lea edx, [esp + 0x3c]
push edx
push ecx
call fcn.00421260
test eax, eax
jl 0x45f050
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.0045e920
cmp eax, 1
jne 0x45f291
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 0x45f090
lea eax, [esp + 0x34]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x45f125
mov ecx, dword [esi]
push 0x2710
sub eax, edx
push eax
lea edx, [esp + 0x3c]
push edx
push ecx
call fcn.00421260
test eax, eax
jl 0x45f050
push 0x2710
lea ecx, [esp + 0x20]
push ecx
push 0x64
push ebp
mov ecx, esi
call fcn.0045cc60
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 0x45f195
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 0x45f1bd
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 0x45f1e5
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 0x45f20d
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 0x45f238
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 0x45f262
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.00471f66
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 0x45f2d4
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 0x45f2fc
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 0x45f324
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi - 0x10]
jmp 0x45ed22