Function at 0x4092e0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x41109c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x154
push ebx
push ebp
push esi
mov ebp, ecx
push edi
lea ecx, [esp + 0x1c]
xor esi, esi
xor ebx, ebx
call sub.MFC42.DLL_CFile::CFile
lea ecx, [esp + 0x14]
mov dword [esp + 0x16c], esi
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0x16c], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp + 0x374]
xor eax, eax
mov byte [ebp + 0x385], 1
mov dword [ebp + 0x370], esi
mov dword [ecx], eax
lea edi, [esp + 0x30]
mov dword [esp + 0x2c], esi
mov byte [esp + 0x16c], 2
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], eax
mov ecx, 7
mov byte [ebp + 0x384], al
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 0x44]
xor edi, edi
cmp eax, esi
jle 0x4093af
lea esi, [ebp + 0xc]
mov eax, dword [ebp + 0x328]
test eax, eax
je 0x409391
mov ecx, dword [eax + 8]
imul ecx, edi
add ecx, eax
je 0x409391
mov edx, dword [ecx]
call dword [edx + 0x14]
mov eax, dword [esi]
test eax, eax
je 0x4093a2
mov dword [esp + ebx*4 + 0x2c], eax
inc ebx
mov dword [esi], 0
mov eax, dword [ebp + 0x44]
inc edi
add esi, 4
cmp edi, eax
jl 0x409378
xor esi, esi
mov eax, dword [ebp + 0x38]
cmp eax, esi
je 0x4093ce
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [ebp + 0x38]
cmp eax, esi
je 0x4093ce
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp + 0x38], esi
mov eax, dword [ebp + 0x2c]
mov edi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, esi
je 0x4093f1
push 0xffffffffffffffff
push eax
call edi
mov eax, dword [ebp + 0x2c]
cmp eax, esi
je 0x4093f1
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp + 0x2c], esi
mov eax, dword [ebp + 0x30]
cmp eax, esi
je 0x40940e
push 0xffffffffffffffff
push eax
call edi
mov eax, dword [ebp + 0x30]
cmp eax, esi
je 0x40940e
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp + 0x30], esi
cmp ebx, esi
jle 0x409481
push 0xffffffffffffffff
lea eax, [esp + 0x30]
push esi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov esi, eax
cmp esi, 0xffffffff
je 0x409465
mov ecx, dword [esp + esi*4 + 0x2c]
lea edi, [esp + esi*4 + 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, ebx
sub edx, esi
lea esi, [esp + esi*4 + 0x30]
lea ecx, [edx*4 - 4]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
dec ebx
rep movsb byte es:[edi], byte [esi]
xor esi, esi
mov dword [esp + ebx*4 + 0x2c], 0
test ebx, ebx
jg 0x409412
jmp 0x409481
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp + 0x48]
push eax
push ecx
push 0x416d9c
push 0
call fcn.00409b00
add esp, 0x10
xor esi, esi
mov ecx, ebp
call fcn.0040a400
mov ecx, dword [ebp + 0x328]
cmp ecx, esi
je 0x409498
mov edx, dword [ecx]
push 3
call dword [edx]
lea eax, [esp + 0x14]
mov ecx, ebp
push eax
mov dword [ebp + 0x328], esi
call fcn.00409b90
mov eax, dword [esp + 0x174]
mov ecx, ebp
cmp eax, esi
je 0x4094c1
call fcn.00409e10
jmp 0x409570
call fcn.004097c0
test eax, eax
je 0x4094d6
mov ecx, ebp
call fcn.00409e10
jmp 0x409570
cmp dword [ebp + 0x310], 5
je 0x409570
mov ecx, dword [esp + 0x14]
push esi
push 0x1001
push ecx
lea ecx, [esp + 0x28]
call sub.MFC42.DLL_CFile::Open
test eax, eax
je 0x409570
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea edx, [esp + 0x10]
push esi
push edx
mov ecx, ebp
mov byte [esp + 0x174], 3
call fcn.00409b60
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x4c]
push eax
push ecx
call sub.MFC42.DLL_CFile::GetStatus
mov edx, dword [esp + 0x50]
lea eax, [ebp + 0x44]
push 0x218
push eax
lea ecx, [esp + 0x24]
mov dword [ebp + 0x258], edx
call sub.MFC42.DLL_CFile::Write
lea eax, [ebp + 0x25c]
push 0x60
push eax
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CFile::Write
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CFile::Close
lea ecx, [esp + 0x10]
mov byte [esp + 0x16c], 2
call fcn.0040f790
mov ecx, 0x18
xor eax, eax
lea edi, [ebp + 0x25c]
mov byte [esp + 0x16c], 1
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x18]
mov dword [ebp + 0x310], esi
call fcn.0040f790
lea ecx, [esp + 0x14]
mov byte [esp + 0x16c], 0
call fcn.0040f790
lea ecx, [esp + 0x1c]
mov dword [esp + 0x16c], 0xffffffff
call fcn.0040f9d6
mov ecx, dword [esp + 0x164]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x160
ret 4