Function at 0x40f6b0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
push 0xffffffffffffffff
push 0x471cfe
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, 0xd574
call fcn.0045d790
mov eax, dword [0x48d000]
xor eax, esp
mov dword [esp + 0xd570], eax
push ebx
push esi
push edi
mov eax, dword [0x48d000]
xor eax, esp
push eax
lea eax, [esp + 0xd5b8]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x30], eax
mov eax, dword [ebp + 0xc]
mov edx, dword [eax + 4]
mov edi, dword [eax + 0x34]
mov esi, ecx
mov ecx, dword [eax]
mov dword [esp + 0x48], ecx
mov ecx, dword [eax + 8]
mov dword [esp + 0x38], eax
mov dword [esp + 0x4c], edx
mov edx, dword [eax + 0xc]
mov dword [esp + 0x40], ecx
mov ecx, dword [eax + 0x10]
mov eax, dword [eax + 0x28]
push ecx
sub eax, 0x10
mov dword [esp + 0x54], edx
mov dword [esp + 0x40], ecx
mov dword [esp + 0x48], 0
mov dword [esp + 0x38], esp
mov ebx, esp
call fcn.00401a40
add eax, 0x10
mov dword [ebx], eax
mov dword [esp + 0xd5c4], 0
mov edx, dword [0x490c00]
shl edi, 5
mov eax, dword [edi + edx + 0x10]
push ecx
sub eax, 0x10
mov dword [esp + 0x30], esp
mov ebx, esp
call fcn.00401a40
add eax, 0x10
mov dword [ebx], eax
mov byte [esp + 0xd5c8], 1
mov eax, dword [0x490c00]
mov eax, dword [edi + eax + 0xc]
push ecx
sub eax, 0x10
mov dword [esp + 0x38], esp
mov ebx, esp
call fcn.00401a40
add eax, 0x10
mov dword [ebx], eax
lea edi, [esp + 0x6dc0]
mov dword [esp + 0xd5cc], 0xffffffff
call fcn.0040f3b0
mov ecx, dword [esp + 0x3c]
mov eax, dword [ecx + 0x10]
add esp, 0xc
test eax, eax
je 0x40f7ce
lea edx, [esp + 0x6db4]
push edx
call eax
add esp, 4
mov ecx, dword [esp + 0x30]
mov ecx, dword [ecx + 0x18]
mov dword [esp + 0x2c], eax
test ecx, ecx
je 0x40f7e3
push eax
call ecx
add esp, 4
push 0x595
lea edx, [esp + 0x58]
push 0
push edx
call fcn.00457050
fldz
add esp, 0xc
fst dword [esp + 0x47c]
push 0xc8
fstp dword [esp + 0x4e5]
mov dword [esp + 0x58], 2
mov dword [esp + 0x5c], 0
mov byte [esp + 0x4e4], 0
mov dword [esp + 0x38], 1
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [0x49036c], 0
jne 0x40fd66
cmp dword [0x490368], 0
mov edi, dword [esp + 0x30]
je 0x40f8be
mov eax, dword [edi + 0x1c]
test eax, eax
je 0x40f85d
mov ecx, dword [esp + 0x2c]
push ecx
call eax
add esp, 4
push 0x47f4dc
push 0x190
push esi
call fcn.00454ebc
mov ecx, dword [esp + 0x4c]
mov edx, dword [ecx]
mov eax, dword [edx + 0x2c]
add esp, 0xc
push esi
call eax
cmp dword [0x490368], 0
je 0x40f8ad
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x40f890
cmp dword [0x49036c], 0
jne 0x40fda0
push 0xc8
call ebx
cmp dword [0x490368], 0
jne 0x40f890
mov eax, dword [edi + 0x18]
test eax, eax
je 0x40f8be
mov ecx, dword [esp + 0x2c]
push ecx
call eax
add esp, 4
mov eax, dword [edi + 0x24]
test eax, eax
je 0x40f8d4
mov ecx, dword [esp + 0x2c]
lea edx, [esp + 0x54]
push edx
push ecx
call eax
add esp, 8
cmp dword [esp + 0x34], 0
jne 0x40fd19
fild qword [esp + 0x46c]
sub esp, 8
fmul qword [0x481bf8]
fstp qword [esp]
push str._.2lfMB
push 0x190
push esi
call fcn.00454ebc
mov edx, dword [section..data]
mov eax, dword [edx + 0xc]
add esp, 0x14
mov ecx, section..data
call eax
add eax, 0x10
mov dword [esp + 0x28], eax
mov dword [esp + 0xd5c0], 2
test esi, esi
je 0x40f94d
test esi, 0xffff0000
jne 0x40f951
movzx edi, si
call fcn.00401ab0
test eax, eax
je 0x40f972
push eax
mov eax, edi
lea edi, [esp + 0x2c]
call fcn.00401c60
jmp 0x40f972
xor eax, eax
jmp 0x40f965
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40f956
sub eax, edx
sar eax, 1
push esi
lea ecx, [esp + 0x2c]
push ecx
mov ebx, eax
call fcn.00401e80
mov ecx, dword [esp + 0x4c]
mov dword [esp + 0xd5c0], 3
mov edx, dword [ecx]
mov edi, dword [esp + 0x28]
mov eax, dword [edx + 0x2c]
push edi
call eax
lea eax, [edi - 0x10]
mov dword [esp + 0xd5c0], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f9b4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x4d4]
cmp eax, 0x400
jge 0x40f9d8
push eax
push str._dB_s
push 0x190
push esi
call fcn.00454ebc
add esp, 0x10
jmp 0x40fa15
fild dword [esp + 0x4d4]
sub esp, 8
cmp eax, 0x100000
jge 0x40f9f9
fmul qword [0x481bf0]
fstp qword [esp]
push str._.2lfKB_s
jmp 0x40fa07
fmul qword [0x481bf8]
fstp qword [esp]
push str._.2lfMB_s
push 0x190
push esi
call fcn.00454ebc
add esp, 0x14
mov edx, dword [section..data]
mov eax, dword [edx + 0xc]
mov ecx, section..data
call eax
add eax, 0x10
mov dword [esp + 0x28], eax
mov dword [esp + 0xd5c0], 4
test esi, esi
je 0x40fa5d
test esi, 0xffff0000
jne 0x40fa61
movzx edi, si
call fcn.00401ab0
test eax, eax
je 0x40fa82
push eax
mov eax, edi
lea edi, [esp + 0x2c]
call fcn.00401c60
jmp 0x40fa82
xor eax, eax
jmp 0x40fa75
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40fa66
sub eax, edx
sar eax, 1
push esi
lea ecx, [esp + 0x2c]
push ecx
mov ebx, eax
call fcn.00401e80
mov ecx, dword [esp + 0x40]
mov dword [esp + 0xd5c0], 5
mov edx, dword [ecx]
mov edi, dword [esp + 0x28]
mov eax, dword [edx + 0x2c]
push edi
call eax
lea eax, [edi - 0x10]
mov dword [esp + 0xd5c0], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40fac4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [esp + 0x38]
mov eax, dword [edx + 0x28]
lea ecx, [esp + 0x5c]
push ecx
push eax
push str._s_s
push 0x190
push esi
call fcn.00454ebc
mov edx, dword [section..data]
mov eax, dword [edx + 0xc]
add esp, 0x14
mov ecx, section..data
call eax
add eax, 0x10
mov dword [esp + 0x28], eax
mov dword [esp + 0xd5c0], 6
test esi, esi
je 0x40fb2c
test esi, 0xffff0000
jne 0x40fb30
movzx edi, si
call fcn.00401ab0
test eax, eax
je 0x40fb51
push eax
mov eax, edi
lea edi, [esp + 0x2c]
call fcn.00401c60
jmp 0x40fb51
xor eax, eax
jmp 0x40fb44
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40fb35
sub eax, edx
sar eax, 1
push esi
lea ecx, [esp + 0x2c]
push ecx
mov ebx, eax
call fcn.00401e80
mov ebx, dword [esp + 0x3c]
mov dword [esp + 0xd5c0], 7
mov edx, dword [ebx]
mov edi, dword [esp + 0x28]
mov eax, dword [edx + 0xb4]
push edi
mov ecx, ebx
call eax
lea eax, [edi - 0x10]
mov dword [esp + 0xd5c0], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40fb98
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [esp + 0x38]
mov eax, dword [edx + 0x28]
lea ecx, [esp + 0x5c]
push ecx
push eax
push str._f_1__u__s_s__u___f_
push 0x190
push esi
call fcn.00454ebc
mov edx, dword [section..data]
mov eax, dword [edx + 0xc]
add esp, 0x14
mov ecx, section..data
call eax
add eax, 0x10
mov dword [esp + 0x28], eax
mov dword [esp + 0xd5c0], 8
test esi, esi
je 0x40fc00
test esi, 0xffff0000
jne 0x40fc04
movzx edi, si
call fcn.00401ab0
test eax, eax
je 0x40fc30
push eax
mov eax, edi
lea edi, [esp + 0x2c]
call fcn.00401c60
jmp 0x40fc30
xor eax, eax
jmp 0x40fc1f
mov eax, esi
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40fc10
sub eax, edx
sar eax, 1
push esi
lea ecx, [esp + 0x2c]
push ecx
mov ebx, eax
call fcn.00401e80
mov ebx, dword [esp + 0x3c]
mov dword [esp + 0xd5c0], 9
mov edx, dword [ebx]
mov edi, dword [esp + 0x28]
mov eax, dword [edx + 0x2c]
push edi
mov ecx, ebx
call eax
lea eax, [edi - 0x10]
mov dword [esp + 0xd5c0], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40fc70
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
fld dword [esp + 0x47c]
sub esp, 8
fmul qword [0x481be8]
fstp qword [esp]
push str._.2lf__
push 0x190
push esi
call fcn.00454ebc
mov ecx, dword [esp + 0x5c]
mov edx, dword [ecx]
mov eax, dword [edx + 0x2c]
add esp, 0x14
push esi
call eax
mov ecx, dword [esp + 0x478]
mov edx, dword [esp + 0x474]
push 0
push 0x100000
push ecx
push edx
call fcn.004607c0
push edx
push eax
push str._dMB
push 0x190
push esi
call fcn.00454ebc
mov ecx, dword [esp + 0x64]
mov eax, dword [ecx]
mov edx, dword [eax + 0x2c]
add esp, 0x14
push esi
call edx
cmp dword [esp + 0x44], 0
jne 0x40fd19
fld dword [0x481be0]
fcomp dword [esp + 0x47c]
fnstsw ax
test ah, 5
jp 0x40fd19
mov eax, dword [esp + 0x38]
mov ecx, dword [eax + 0x30]
push 0
push 0
push 0x468
push ecx
mov dword [esp + 0x54], 1
call dword [sym.imp.USER32.dll_PostMessageW]
mov eax, dword [esp + 0x54]
cmp eax, 4
je 0x40fe82
cmp eax, 1
je 0x40fdeb
mov ecx, dword [esp + 0x34]
inc ecx
mov eax, 0x99999999
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
lea edx, [eax + ecx]
lea eax, [edx + eax*4]
push 0xc8
mov dword [esp + 0x38], eax
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [0x49036c], 0
je 0x40f83f
mov esi, dword [esp + 0x30]
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x40fd7b
mov ecx, dword [esp + 0x2c]
push ecx
call eax
add esp, 4
mov eax, dword [esi + 0x14]
test eax, eax
je 0x40fd8c
mov edx, dword [esp + 0x2c]
push edx
call eax
add esp, 4
mov dword [0x49036c], 0
mov eax, 2
jmp 0x40fe87
mov eax, dword [edi + 0x1c]
test eax, eax
je 0x40fdb1
mov ecx, dword [esp + 0x2c]
push ecx
call eax
add esp, 4
mov eax, dword [edi + 0x14]
test eax, eax
je 0x40fdc2
mov edx, dword [esp + 0x2c]
push edx
call eax
add esp, 4
mov eax, dword [edi + 0xc]
test eax, eax
je 0x40fdcb
call eax
mov eax, dword [edi]
mov edx, dword [eax]
push 1
mov ecx, edi
call edx
xor eax, eax
mov dword [0x49036c], eax
mov dword [0x490368], eax
mov eax, 2
jmp 0x40fe87
mov edi, dword [esp + 0x30]
mov eax, dword [edi + 0x14]
xor ebx, ebx
cmp eax, ebx
je 0x40fe02
mov ecx, dword [esp + 0x2c]
push ecx
call eax
add esp, 4
push 0x67c4
lea edx, [esp + 0x5f0]
push ebx
push edx
call fcn.00457050
mov esi, dword [sym.imp.SHLWAPI.dll_StrCpyW]
add esp, 0xc
lea eax, [esp + 0x5c]
push eax
lea ecx, [esp + 0x4684]
push ecx
mov dword [esp + 0x4dac], 5
mov dword [esp + 0x4ca4], ebx
mov dword [esp + 0x4db0], ebx
mov dword [esp + 0x4da8], ebx
mov dword [esp + 0x4db4], 1
call esi
lea edx, [esp + 0xb258]
push edx
lea eax, [esp + 0x4a94]
push eax
call esi
mov eax, dword [edi + 0x30]
cmp eax, ebx
je 0x40fe7e
lea ecx, [esp + 0x5ec]
push ecx
call eax
add esp, 4
xor eax, eax
jmp 0x40fe87
mov eax, 1
mov ecx, dword [esp + 0xd5b8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xd570]
xor ecx, esp
call fcn.00454d73
mov esp, ebp
pop ebp
ret