Function at 0x10020210
Capabilities:
Access peb ldr_data
Create directory
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x1009fe88
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
push ebx
push ebp
push esi
lea eax, [esp + 0xc]
push edi
mov edi, ecx
push eax
call sub.mfc42.dll_CTime::GetTickCount
lea ecx, [esp + 0x1c]
call sub.mfc42.dll_CString::CString_2
lea ecx, [esp + 0x14]
mov dword [esp + 0x3c], 0
call sub.mfc42.dll_CString::CString_2
lea ecx, [esp + 0x18]
mov byte [esp + 0x3c], 1
call sub.mfc42.dll_CString::CString_2
push 0x100c4e98
push 0x100c36f8
mov byte [esp + 0x44], 2
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
lea ecx, [esp + 0x30]
push eax
push ecx
call dword [sym.imp.staff.dll_class_CString___cdecl_STAFFGetInstancePathAndFilename_struct_HINSTANCE_____char_const__]
add esp, 0xc
mov eax, dword [eax]
lea edx, [esp + 0x14]
push eax
push edx
mov byte [esp + 0x44], 3
call sub.mfc42.dll_CString::Format
add esp, 8
lea ecx, [esp + 0x2c]
mov byte [esp + 0x3c], 2
call sub.mfc42.dll_CString::CString
push 0
lea ecx, [esp + 0x14]
call sub.mfc42.dll_CTime::GetLocalTm
mov ebp, dword [eax]
push 0
lea ecx, [esp + 0x14]
call sub.mfc42.dll_CTime::GetLocalTm
mov ebx, dword [eax + 4]
push 0
lea ecx, [esp + 0x14]
call sub.mfc42.dll_CTime::GetLocalTm
mov eax, dword [eax + 8]
push 0
lea ecx, [esp + 0x14]
mov dword [esp + 0x30], eax
call sub.mfc42.dll_CTime::GetLocalTm
mov ecx, dword [eax + 0xc]
push 0
mov dword [esp + 0x34], ecx
lea ecx, [esp + 0x14]
call sub.mfc42.dll_CTime::GetLocalTm
mov esi, dword [eax + 0x10]
push 0
lea ecx, [esp + 0x14]
inc esi
call sub.mfc42.dll_CTime::GetLocalTm
mov edx, dword [esp + 0x2c]
mov eax, dword [eax + 0x14]
mov ecx, dword [esp + 0x30]
push ebp
push ebx
push edx
mov edx, dword [edi + 0xbeed8]
add eax, 0x76c
push ecx
push esi
push eax
push edx
lea eax, [esp + 0x38]
push 0x100c4e68
push eax
call sub.mfc42.dll_CString::Format
mov eax, dword [edi + 0xbeed8]
add esp, 0x24
cmp eax, 0x270f
jne 0x10020348
mov dword [edi + 0xbeed8], 0
jmp 0x1002034f
inc eax
mov dword [edi + 0xbeed8], eax
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
push ecx
push edx
lea eax, [esp + 0x20]
push 0x100c4dec
push eax
call sub.mfc42.dll_CString::Format
mov ecx, dword [esp + 0x24]
push ecx
call dword [sym.imp.msvcrt.dll__mkdir]
xor ebx, ebx
add esp, 0x14
lea ecx, [esp + 0x28]
mov dword [esp + 0x20], ebx
call sub.mfc42.dll_CString::CString_2
mov edx, dword [esp + 0x18]
push 0x100c4e64
push edx
mov byte [esp + 0x44], 4
call dword [sym.imp.msvcrt.dll_fopen]
mov ebp, dword [sym.imp.msvcrt.dll_fprintf]
add esp, 8
mov esi, eax
push 0x100c4e5c
push esi
call ebp
mov eax, dword [edi + 0x7598c]
add esp, 8
neg eax
sbb eax, eax
test eax, eax
mov dword [esp + 0x24], eax
je 0x1002041f
cmp ebx, 0xc8
jge 0x1002041f
lea eax, [esp + 0x20]
lea ecx, [esp + 0x28]
push eax
lea edx, [esp + 0x28]
push ecx
push edx
lea ecx, [edi + 0x75980]
call sub.mfc42.dll_CMapStringToOb::GetNextAssoc
mov ecx, dword [esp + 0x20]
test byte [ecx + 0x58], 2
je 0x10020417
mov eax, dword [ecx + 0x6c]
test eax, eax
jne 0x10020417
lea eax, [esp + 0x30]
push eax
call fcn.10020480
mov ecx, dword [eax]
push ecx
push 0x100c4e54
push esi
call ebp
add esp, 0xc
lea ecx, [esp + 0x30]
call sub.mfc42.dll_CString::CString
inc ebx
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x100203c2
push esi
call dword [sym.imp.msvcrt.dll_fclose]
add esp, 4
lea ecx, [esp + 0x28]
mov byte [esp + 0x3c], 2
call sub.mfc42.dll_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0x3c], 1
call sub.mfc42.dll_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x3c], 0
call sub.mfc42.dll_CString::CString
lea ecx, [esp + 0x1c]
mov dword [esp + 0x3c], 0xffffffff
call sub.mfc42.dll_CString::CString
mov ecx, dword [esp + 0x34]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x30
ret