Function at 0x404a00
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x413647
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebp
push esi
push edi
lea ecx, [esp + 0xc]
mov dword [esp + 0x24], 0
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x30], 1
cmp eax, 3
jb 0x404a46
cmp eax, 5
jbe 0x404b0d
cmp eax, 0xb
je 0x404b0d
cmp eax, 8
je 0x404b0d
cmp eax, 0xa
je 0x404b0d
cmp eax, 6
jne 0x404ab5
mov edi, dword [esp + 0x44]
lea eax, [edi + 1]
push eax
call sub.MFC42.DLL_operatornew
mov ecx, dword [esp + 0x44]
add esp, 4
mov esi, eax
push 0
push 0
push edi
push esi
push 0xffffffffffffffff
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
cmp eax, edi
ja 0x404a99
mov byte [eax + esi], 0
jmp 0x404a9d
mov byte [esi + edi], 0
push esi
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::operator_1
push esi
call sub.MFC42.DLL_operatordelete
add esp, 4
jmp case.0x404b19.6
cmp eax, 7
jne 0x404afa
mov edx, dword [esp + 0x44]
xor esi, esi
lea edi, [edx - 2]
test edi, edi
jle case.0x404b19.6
mov ebp, dword [esp + 0x40]
mov al, byte [esi + ebp]
test al, al
jne 0x404ae6
push 0x419cd8
lea ecx, [esp + 0x10]
call fcn.00412bb6
jmp 0x404af0
push eax
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::operator_2
inc esi
cmp esi, edi
jl 0x404acf
jmp case.0x404b19.6
mov eax, dword [esp + 0x40]
lea ecx, [esp + 0xc]
push eax
call sub.MFC42.DLL_CString::operator_1
jmp case.0x404b19.6
add eax, 0xfffffffd
cmp eax, 8
ja case.0x404b19.6
jmp dword [eax*4 + 0x404d3c]
lea ecx, [esp + 0x3c]
call sub.MFC42.DLL_CString::CString
mov ebp, dword [esp + 0x44]
xor esi, esi
test ebp, ebp
mov byte [esp + 0x30], 2
jle 0x404b8c
mov edi, dword [esp + 0x40]
mov cl, byte [esi + edi]
lea eax, [esp + 0x3c]
mov byte [esp + 0x40], cl
mov edx, dword [esp + 0x40]
and edx, 0xff
push edx
push str._02x
push eax
call sub.MFC42.DLL_CString::Format
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov eax, dword [ecx - 8]
test eax, eax
je 0x404b79
push 0x419ccc
lea ecx, [esp + 0x10]
call fcn.00412bb6
lea edx, [esp + 0x3c]
lea ecx, [esp + 0xc]
push edx
call fcn.00412c6a
inc esi
cmp esi, ebp
jl 0x404b3c
lea ecx, [esp + 0x3c]
mov byte [esp + 0x30], 1
call fcn.00412bbc
jmp case.0x404b19.6
mov eax, dword [esp + 0x40]
mov dl, byte [eax + 2]
mov cl, byte [eax + 3]
mov byte [esp + 0x3c], dl
mov dl, byte [eax]
mov byte [esp + 0x10], cl
mov cl, byte [eax + 1]
mov byte [esp + 0x40], dl
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x40]
mov byte [esp + 0x44], cl
mov ecx, dword [esp + 0x44]
and eax, 0xff
push eax
mov eax, dword [esp + 0x14]
and ecx, 0xff
and edx, 0xff
push ecx
and eax, 0xff
push edx
push eax
lea ecx, [esp + 0x1c]
push str._02x_02x_02x_02x
push ecx
call sub.MFC42.DLL_CString::Format
add esp, 0x18
jmp case.0x404b19.6
mov eax, dword [esp + 0x40]
mov dl, byte [eax]
mov cl, byte [eax + 1]
mov byte [esp + 0x10], dl
mov dl, byte [eax + 2]
mov al, byte [eax + 3]
mov byte [esp + 0x3c], cl
mov byte [esp + 0x40], al
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x40]
mov byte [esp + 0x44], dl
mov edx, dword [esp + 0x44]
and ecx, 0xff
push ecx
mov ecx, dword [esp + 0x14]
and edx, 0xff
and eax, 0xff
push edx
and ecx, 0xff
push eax
push ecx
lea edx, [esp + 0x1c]
push str._02x_02x_02x_02x
push edx
call sub.MFC42.DLL_CString::Format
add esp, 0x18
jmp case.0x404b19.6
mov eax, dword [esp + 0x40]
mov dl, byte [eax + 6]
mov cl, byte [eax + 7]
mov byte [esp + 0x1c], dl
mov dl, byte [eax + 4]
mov byte [esp + 0x20], cl
mov cl, byte [eax + 5]
mov byte [esp + 0x14], dl
mov dl, byte [eax + 2]
mov byte [esp + 0x18], cl
mov cl, byte [eax + 3]
mov byte [esp + 0x3c], dl
mov dl, byte [eax]
mov byte [esp + 0x10], cl
mov cl, byte [eax + 1]
mov byte [esp + 0x40], dl
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x40]
mov byte [esp + 0x44], cl
mov ecx, dword [esp + 0x44]
and eax, 0xff
and ecx, 0xff
push eax
mov eax, dword [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x1c]
and edx, 0xff
and eax, 0xff
push edx
mov edx, dword [esp + 0x24]
and ecx, 0xff
push eax
mov eax, dword [esp + 0x2c]
push ecx
mov ecx, dword [esp + 0x34]
and edx, 0xff
and eax, 0xff
push edx
and ecx, 0xff
push eax
push ecx
lea edx, [esp + 0x2c]
push str._02x_02x_02x_02x_02x_02x_02x_02x
push edx
call sub.MFC42.DLL_CString::Format
add esp, 0x28
mov esi, dword [esp + 0x38]
lea eax, [esp + 0xc]
push eax
mov ecx, esi
call sub.MFC42.DLL_CString::CString_2
mov dword [esp + 0x24], 1
lea ecx, [esp + 0xc]
mov byte [esp + 0x30], 0
call fcn.00412bbc
mov ecx, dword [esp + 0x28]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x28
ret