Function at 0x40dee0
Capabilities:
Access peb ldr_data
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x41fd58
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x427040]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x58]
mov esi, ecx
lea edi, [esi + 0xc]
push edi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [esp + 0x48], 0
cmp dword [esi], 0xffffffff
jne 0x40df32
push edi
jmp 0x40e0ec
mov eax, dword [0x4281ac]
mov edx, dword [eax + 0xc]
mov ecx, 0x4281ac
call edx
add eax, 0x10
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x60]
mov byte [esp + 0x48], 1
mov ebx, dword [esp + 0x5c]
push eax
lea edi, [esp + 0x20]
call fcn.004103d0
mov edx, dword [0x4281ac]
mov eax, dword [edx + 0xc]
mov ecx, 0x4281ac
call eax
add eax, 0x10
mov dword [esp + 0x20], eax
lea ecx, [esp + 0x30]
push ecx
mov byte [esp + 0x4c], 2
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx edx, word [esp + 0x3c]
movzx eax, word [esp + 0x3a]
movzx ecx, word [esp + 0x38]
push edx
movzx edx, word [esp + 0x3a]
push eax
movzx eax, word [esp + 0x3a]
push ecx
movzx ecx, word [esp + 0x3c]
push edx
mov edx, dword [esp + 0x64]
push eax
mov eax, dword [esp + 0x64]
push ecx
push edx
push eax
push 0x4234c8
lea edi, [esp + 0x44]
call fcn.00411870
mov ecx, dword [esi + ebp*4 + 0x24]
add esp, 0x24
lea edx, [esp + 0x14]
push edx
call fcn.00410320
mov byte [esp + 0x48], 3
mov ebx, dword [esp + 0x1c]
mov eax, dword [ebx - 0xc]
push eax
push ebx
lea eax, [esp + 0x1c]
push eax
call fcn.004106b0
mov edi, dword [esp + 0x20]
mov eax, dword [edi - 0xc]
push eax
push edi
lea ecx, [esp + 0x1c]
push ecx
call fcn.004106b0
mov edx, dword [0x4281ac]
mov eax, dword [edx + 0xc]
mov ecx, 0x4281ac
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x48], 4
push ecx
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x1c]
call fcn.0040dc20
add esp, 4
test al, al
je 0x40e05b
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x18]
push 0
lea edx, [esp + 0x28]
push edx
mov edx, dword [esi]
push eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp byte [esi + 8], 0
je 0x40e05b
push edi
push ebx
push ebp
call fcn.0040e480
mov byte [esp + 0x48], 3
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e080
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x48], 2
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e0a5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add edi, 0xfffffff0
mov byte [esp + 0x48], 1
lea ecx, [edi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e0c6
mov ecx, dword [edi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push edi
call edx
add ebx, 0xfffffff0
mov byte [esp + 0x48], 0
lea eax, [ebx + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40e0e7
mov ecx, dword [ebx]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push ebx
call eax
mov ecx, dword [esp + 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x38
ret