Function at 0x40cfd0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x429a58
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x6c
push ebx
push ebp
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0x28]
call fcn.004162e0
mov eax, dword [0x435644]
mov ecx, 0x435644
mov dword [esp + 0x84], 0
call dword [eax + 0xc]
lea ebp, [eax + 0x10]
mov dword [esp + 0x14], ebp
mov edx, dword [0x435644]
mov ecx, 0x435644
mov byte [esp + 0x84], 1
call dword [edx + 0xc]
lea ebx, [eax + 0x10]
mov dword [esp + 0x10], ebx
mov eax, dword [0x435644]
mov ecx, 0x435644
mov byte [esp + 0x84], 2
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [esp + 0x18], edi
mov eax, dword [esi + 0x3c]
push 0
push eax
lea ecx, [esp + 0x30]
mov byte [esp + 0x8c], 3
call fcn.00416380
test al, al
jne 0x40d124
lea eax, [edi - 0x10]
mov byte [esp + 0x84], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d090
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [ebx - 0x10]
mov byte [esp + 0x84], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d0b2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [ebp - 0x10]
mov byte [esp + 0x84], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d0d4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x64]
xor esi, esi
cmp eax, esi
mov dword [esp + 0x84], 0xffffffff
mov dword [esp + 0x28], 0x42b6a8
je 0x40d0fa
push eax
call fcn.0041df9e
add esp, 4
lea ecx, [esp + 0x28]
mov dword [esp + 0x64], esi
mov dword [esp + 0x68], esi
mov dword [esp + 0x6c], esi
call fcn.00415d70
xor al, al
mov ecx, dword [esp + 0x7c]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x78
ret
push str.SERVER_INFO
push str.WNWB_CONF
lea ecx, [esp + 0x30]
call fcn.00415450
mov ecx, eax
call fcn.00415450
test eax, eax
mov dword [esp + 0x1c], eax
jne 0x40d200
lea eax, [edi - 0x10]
mov byte [esp + 0x84], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d16c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [ebx - 0x10]
mov byte [esp + 0x84], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d18e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [ebp - 0x10]
mov byte [esp + 0x84], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d1b0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x64]
test eax, eax
mov dword [esp + 0x84], 0xffffffff
mov dword [esp + 0x28], 0x42b6a8
je 0x40d1d4
push eax
call fcn.0041df9e
add esp, 4
xor eax, eax
lea ecx, [esp + 0x28]
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
call fcn.00415d70
xor al, al
mov ecx, dword [esp + 0x7c]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x78
ret
push str.TIME
mov ecx, eax
call fcn.00415500
test eax, eax
jne 0x40d27f
lea eax, [edi - 0x10]
mov byte [esp + 0x84], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d232
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [ebx - 0x10]
mov byte [esp + 0x84], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d254
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [ebp - 0x10]
mov byte [esp + 0x84], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d407
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
jmp 0x40d407
mov eax, dword [eax + 0x18]
test eax, eax
je 0x40d28c
cmp dword [eax + 0x14], 4
je 0x40d28e
xor eax, eax
mov ecx, dword [eax + 0x24]
test ecx, ecx
je 0x40d29a
mov eax, dword [eax + 0x20]
jmp 0x40d29f
mov eax, 0x42b680
push eax
lea ecx, [esp + 0x18]
call fcn.004062b0
mov ecx, dword [esp + 0x1c]
push str.FILE_NAME
call fcn.00415500
test eax, eax
jne 0x40d30b
lea eax, [edi - 0x10]
mov byte [esp + 0x84], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d2dd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [ebx - 0x10]
mov byte [esp + 0x84], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d2ff
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
jmp 0x40d257
mov eax, dword [eax + 0x18]
test eax, eax
je 0x40d318
cmp dword [eax + 0x14], 4
je 0x40d31a
xor eax, eax
mov ecx, dword [eax + 0x24]
test ecx, ecx
je 0x40d326
mov eax, dword [eax + 0x20]
jmp 0x40d32b
mov eax, 0x42b680
lea edi, [esi + 0x18]
push eax
mov ecx, edi
call fcn.004062b0
lea eax, [esp + 0x10]
push eax
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push edi
call fcn.00405d20
mov ecx, esi
call fcn.0040a7d0
test eax, eax
jne 0x40d3bc
mov ecx, dword [esp + 0x10]
push 0x42c1c8
push ecx
push 0x42c1b8
lea edi, [esi + 0x4c]
push str._s_s_s
push edi
call fcn.00401cf0
add esp, 0x14
mov ecx, edi
call fcn.00401840
push eax
call fcn.004011c0
add esp, 4
lea edx, [esp + 0x20]
push edx
call fcn.00405c90
push str._Y__m__d__H:_M:_S
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x28]
call fcn.0040cf50
push eax
lea ecx, [esi + 0x40]
mov byte [esp + 0x88], 4
call fcn.004061a0
lea ecx, [esp + 0x1c]
call fcn.004014e0
jmp 0x40d3ec
lea edx, [esp + 0x10]
lea ecx, [esi + 0x40]
push edx
call fcn.004060a0
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
push eax
push ecx
call fcn.0041e2b7
add esp, 8
test eax, eax
jne 0x40d430
push 0x42c180
call fcn.004011c0
add esp, 4
lea ecx, [esp + 0x18]
call fcn.004014e0
lea ecx, [esp + 0x10]
call fcn.004014e0
lea ecx, [esp + 0x14]
call fcn.004014e0
lea ecx, [esp + 0x28]
mov dword [esp + 0x84], 0xffffffff
call fcn.00405c30
xor al, al
mov ecx, dword [esp + 0x7c]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x78
ret
push 0x42c164
call fcn.004011c0
add esp, 4
lea ecx, [esp + 0x18]
call fcn.004014e0
lea ecx, [esp + 0x10]
call fcn.004014e0
lea ecx, [esp + 0x14]
call fcn.004014e0
lea ecx, [esp + 0x28]
mov dword [esp + 0x84], 0xffffffff
call fcn.00405c30
mov ecx, dword [esp + 0x7c]
pop edi
pop esi
pop ebp
mov al, 1
mov dword fs:[0], ecx
pop ebx
add esp, 0x78
ret