Function at 0x401890
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x2c
push ebx
push esi
mov esi, dword [esp + 0x44]
push edi
mov ecx, 9
xor eax, eax
lea edi, [esp + 0x14]
xor edx, edx
mov dx, word [esi + 8]
push 0x41a158
rep stosd dword es:[edi], eax
mov ax, word [esi + 0xc]
xor ecx, ecx
mov cx, word [esi + 0xa]
mov edi, dword [esp + 0x48]
mov dword [esp + 0x18], eax
xor eax, eax
mov ax, word [esi + 6]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], edx
xor ecx, ecx
mov cx, word [esi + 2]
xor edx, edx
mov dx, word [esi]
mov dword [esp + 0x24], eax
xor eax, eax
dec ecx
mov ax, word [esi + 4]
sub edx, 0x76c
push edi
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], eax
call dword [sym.imp.MSVCRT.dll_strstr]
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x401a4b
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0x40]
not ecx
add ecx, 3
cmp eax, ecx
jae 0x40192b
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x2c
ret
inc eax
push ebp
push eax
call sub.MFC42.DLL_operatornew
mov ebp, eax
mov eax, dword [esp + 0x4c]
sub ebx, eax
push ebx
push eax
push ebp
mov dword [esp + 0x24], ebx
call dword [sym.imp.MSVCRT.dll_strncpy]
add ebx, ebp
xor edx, edx
lea ecx, [esp + 0x20]
push 0xa
mov byte [ebx], 0
mov dx, word [esi + 0xe]
push ecx
push edx
call dword [sym.imp.MSVCRT.dll__itoa]
lea edi, [esp + 0x2c]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x1c
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 3
jge 0x4019b7
mov eax, 3
sub eax, ecx
mov dword [esp + 0x4c], eax
mov edi, 0x41a164
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x4c]
mov ecx, edx
and ecx, 3
dec eax
rep movsb byte es:[edi], byte [esi]
mov dword [esp + 0x4c], eax
jne 0x401982
or ecx, 0xffffffff
lea edi, [esp + 0x10]
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x41a158
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0x48]
not ecx
dec ecx
mov edi, ecx
mov ecx, dword [esp + 0x14]
add edi, ecx
or ecx, 0xffffffff
add edi, eax
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov edx, dword [esp + 0x40]
and ecx, 3
lea eax, [esp + 0x18]
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x44]
push eax
push ebp
push ecx
push edx
call dword [sym.imp.MSVCRT.dll_strftime]
push ebp
mov esi, eax
call sub.MFC42.DLL_operatordelete
add esp, 0x14
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x2c
ret
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x3c]
lea eax, [esp + 0x14]
push eax
push edi
push ecx
push edx
call dword [sym.imp.MSVCRT.dll_strftime]
add esp, 0x10
pop edi
pop esi
pop ebx
add esp, 0x2c
ret