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

Disassembly:
push 0xffffffffffffffff
push 0x4227d7
mov eax, dword fs:[0]
push eax
sub esp, 0xb5c
mov eax, dword [0x42e070]
xor eax, esp
mov dword [esp + 0xb58], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x42e070]
xor eax, esp
push eax
lea eax, [esp + 0xb70]
mov dword fs:[0], eax
mov eax, dword [0x42f124]
mov edx, dword [eax + 0xc]
mov esi, ecx
mov ecx, 0x42f124
call edx
add eax, 0x10
mov dword [esp + 0x1c], eax
xor ebx, ebx
mov dword [esp + 0xb78], ebx
mov eax, dword [0x42f124]
mov edx, dword [eax + 0xc]
mov ecx, 0x42f124
call edx
add eax, 0x10
mov dword [esp + 0x20], eax
mov byte [esp + 0xb78], 1
xor eax, eax
push 0x206
lea edx, [esp + 0x19a]
xor ecx, ecx
push ebx
push edx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x48], ebx
mov word [esp + 0x78], ax
mov dword [esp + 0x7a], eax
mov dword [esp + 0x7e], eax
mov dword [esp + 0x82], eax
mov dword [esp + 0x86], eax
mov dword [esp + 0x8a], eax
mov dword [esp + 0x8e], eax
mov dword [esp + 0x92], eax
mov word [esp + 0x1a0], cx
call fcn.00410d60
xor eax, eax
push 0x103
lea ecx, [esp + 0x9d]
push ebx
push ecx
mov word [esp + 0x68], ax
mov dword [esp + 0x6a], eax
mov dword [esp + 0x6e], eax
mov dword [esp + 0x72], eax
mov dword [esp + 0x76], eax
mov dword [esp + 0x7a], eax
mov dword [esp + 0x7e], eax
mov word [esp + 0x82], ax
mov byte [esp + 0xa4], bl
call fcn.00410d60
push 0x7cf
lea edx, [esp + 0x3b9]
push ebx
push edx
mov byte [esp + 0x3c0], bl
call fcn.00410d60
xor eax, eax
push esi
push 0x4251f4
lea edi, [esp + 0x48]
mov byte [esp + 0x6c], bl
mov dword [esp + 0x6d], eax
mov dword [esp + 0x71], eax
mov dword [esp + 0x75], eax
mov word [esp + 0x79], ax
call fcn.0040d950
mov ebp, dword [esp + 0x48]
add esp, 0x28
lea esi, [ebp - 0x10]
mov eax, esi
mov dword [esp + 0x1c], esp
mov edi, esp
call fcn.0040d850
add eax, 0x10
mov dword [edi], eax
lea eax, [esp + 0x1c]
push eax
call fcn.00406700
add esp, 8
mov byte [esp + 0xb78], 2
mov ecx, dword [eax]
lea eax, [ecx - 0x10]
cmp eax, esi
je 0x406337
cmp dword [esi + 0xc], ebx
lea edi, [esi + 0xc]
jl 0x406324
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x406324
call fcn.0040d850
mov ebp, eax
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x40631b
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
add ebp, 0x10
mov dword [esp + 0x1c], ebp
jmp 0x406337
mov ebx, dword [ecx - 0xc]
push ecx
lea eax, [esp + 0x20]
call fcn.0040d750
mov ebp, dword [esp + 0x1c]
xor ebx, ebx
mov byte [esp + 0xb78], 1
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 0x40635f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0xc]
cmp eax, ebx
jl 0x40642a
push str.typedlp
push ebp
call fcn.0040f329
add esp, 8
cmp eax, ebx
je 0x40642a
sub eax, ebp
sar eax, 1
cmp eax, 0xffffffff
je 0x40642a
cmp dword [ebp - 0xc], ebx
mov dword [esp + 0x24], 1
jge 0x40639f
or edi, 0xffffffff
jmp 0x4063bc
push str.end
push ebp
call fcn.0040f329
add esp, 8
cmp eax, ebx
jne 0x4063b6
or edi, 0xffffffff
jmp 0x4063bc
sub eax, ebp
sar eax, 1
mov edi, eax
mov eax, dword [ebp - 0xc]
cmp eax, ebx
jge 0x4063c8
or esi, 0xffffffff
jmp 0x4063e5
push 0x428aa4
push ebp
call fcn.0040f329
add esp, 8
cmp eax, ebx
jne 0x4063df
or esi, 0xffffffff
jmp 0x4063e5
sub eax, ebp
sar eax, 1
mov esi, eax
cmp dword [ebp - 0xc], ebx
jge 0x4063ef
or ecx, 0xffffffff
jmp 0x40640c
push 0x428aa4
push ebp
call fcn.0040f329
add esp, 8
cmp eax, ebx
jne 0x406406
or ecx, 0xffffffff
jmp 0x40640c
sub eax, ebp
sar eax, 1
mov ecx, eax
mov eax, edi
lea edx, [esp + 0x1c]
sub eax, esi
push edx
dec eax
inc ecx
lea edx, [esp + 0x1c]
call fcn.0040d330
mov byte [esp + 0xb78], 3
jmp 0x406482
push 0x428aa8
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x24]
push edx
lea ebx, [esp + 0x34]
call fcn.0040d1d0
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 0x406462
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x4281c0
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x24]
push edx
lea ebx, [esp + 0x34]
call fcn.0040d1d0
mov byte [esp + 0xb78], 4
lea edi, [esp + 0x20]
call fcn.0040cf60
mov byte [esp + 0xb78], 1
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4064b3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ebx, [esp + 0x6c]
call fcn.0040c7b0
lea ecx, [esp + 0x40]
push ecx
call dword [0x430980]
add esp, 4
lea edx, [esp + 0x2c]
push edx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
cmp dword [esp + 0x24], 1
push 0x430728
lea edx, [esp + 0x198]
jne 0x406516
push 0x428aac
call fcn.0040d990
add esp, 8
xor eax, eax
jmp 0x406500
movzx ecx, word [eax + 0x428ac8]
mov word [esp + eax + 0x50], cx
add eax, 2
test cx, cx
jne 0x406500
jmp 0x406544
push str._sGLOG
call fcn.0040d990
add esp, 8
xor eax, eax
jmp 0x406530
movzx ecx, word [eax + str.GLOG]
mov word [esp + eax + 0x50], cx
add eax, 2
test cx, cx
jne 0x406530
lea eax, [esp + 0x194]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
mov edi, dword [esp + 0x20]
movzx eax, word [esp + 0x38]
push edi
lea ecx, [esp + 0x70]
push ecx
movzx ecx, word [esp + 0x3e]
lea edx, [esp + 0x48]
push edx
movzx edx, word [esp + 0x40]
push eax
movzx eax, word [esp + 0x42]
push ecx
movzx ecx, word [esp + 0x42]
push edx
movzx edx, word [esp + 0x44]
push eax
push ecx
push edx
lea eax, [esp + 0x3c0]
push str._04d__02d__02d__02d:_02d:_02d___s___S___S_n
push eax
call fcn.0040fc5d
movzx edx, word [esp + 0x60]
movzx eax, word [esp + 0x58]
lea ecx, [esp + 0x7c]
push ecx
movzx ecx, word [esp + 0x5e]
push edx
movzx edx, word [esp + 0x66]
push eax
push ecx
push edx
lea eax, [esp + 0xac]
push eax
lea ecx, [esp + 0x1d8]
push ecx
lea edx, [esp + 0xd4]
push str._S_S__02d_02d_04d__02d._S
push edx
call fcn.0040fc5d
add esp, 0x50
push 0
push 0
push 4
push 0
push 3
push 0xc0000000
lea eax, [esp + 0xa4]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
or ebx, 0xffffffff
cmp esi, ebx
jne 0x40664c
add edi, 0xfffffff0
mov byte [esp + 0xb78], 0
lea ecx, [edi + 0xc]
mov edx, ebx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406624
mov ecx, dword [edi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push edi
call edx
add ebp, 0xfffffff0
mov dword [esp + 0xb78], ebx
lea eax, [ebp + 0xc]
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jg 0x406645
mov ecx, dword [ebp]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push ebp
call eax
xor eax, eax
jmp 0x4066d3
push 2
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [esp + 0x39c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x406663
push 0
lea ecx, [esp + 0x40]
push ecx
sub eax, edx
push eax
lea edx, [esp + 0x3a8]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [edi - 0x10]
mov byte [esp + 0xb78], 0
lea ecx, [eax + 0xc]
mov edx, ebx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4066ad
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add ebp, 0xfffffff0
mov dword [esp + 0xb78], ebx
lea ecx, [ebp + 0xc]
lock xadd dword [ecx], ebx
dec ebx
test ebx, ebx
jg 0x4066ce
mov ecx, dword [ebp]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push ebp
call eax
mov eax, 1
mov ecx, dword [esp + 0xb70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xb58]
xor ecx, esp
call fcn.0040e6d9
add esp, 0xb68
ret