Function at 0x408510
Capabilities:
Enumerate pe sections
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x412721
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x130
push esi
lea eax, [esp + 0x30]
push edi
mov esi, ecx
xor edi, edi
push eax
push 0x104
mov dword [esp + 0x28], esi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x10], edi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea ecx, [esp + 0x34]
push ecx
lea ecx, [esp + 0x30]
call sub.MFC42.DLL_CString::CString_1
lea edx, [esp + 0x14]
lea eax, [esp + 8]
push edx
push eax
mov ecx, esi
mov dword [esp + 0x148], edi
call fcn.00408940
cmp eax, edi
jne 0x4085b5
mov ecx, dword [esp + 8]
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
lea ecx, [esp + 0x2c]
mov dword [esp + 8], edi
mov dword [esp + 0x140], 0xffffffff
call fcn.0041128a
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x130]
mov dword fs:[0], ecx
add esp, 0x13c
ret
mov eax, dword [esp + 0x14]
mov dword [esp + 0x24], edi
cmp eax, edi
jbe 0x4088fd
push ebx
push ebp
xor ebx, ebx
mov edx, dword [esp + 0x10]
cmp byte [ebx + edx], 0xff
jne 0x4088e0
push 0x107
call sub.MFC42.DLL_operatornew
mov ebp, eax
add esp, 4
cmp ebp, edi
je 0x4088e0
mov eax, dword [esp + 0x10]
or ecx, 0xffffffff
lea edx, [ebp + 0x8f]
lea edi, [ebx + eax + 0x83]
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x10]
mov byte [esp + 0x148], 1
lea edx, [ebx + ecx + 0x1f]
lea ecx, [esp + 0x30]
push edx
call sub.MFC42.DLL_CString::CString_1
lea eax, [esp + 0x30]
lea ecx, [esp + 0x18]
push eax
mov byte [esp + 0x14c], 2
call sub.MFC42.DLL_CString::operator_1
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx - 4]
lea ecx, [esp + 0x18]
push eax
call sub.MFC42.DLL_CString::GetBuffer
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp + 0x2b]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [ebp + 0x17]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x10]
lea edi, [ebx + ecx + 0xb]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [ebp + 0xf3]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x10]
lea edi, [ebx + ecx + 0xe7]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x10]
mov esi, dword [esp + 0x28]
xor edi, edi
mov dl, byte [ebx + ecx + 1]
mov byte [ebp + 1], dl
mov eax, dword [esp + 0x10]
mov cl, byte [ebx + eax + 6]
mov byte [ebp + 6], cl
mov edx, dword [esp + 0x10]
mov al, byte [ebx + edx]
mov byte [ebp], al
mov ecx, dword [esp + 0x10]
mov edx, dword [ebx + ecx + 2]
mov dword [ebp + 2], edx
mov eax, dword [esp + 0x10]
mov ecx, dword [ebx + eax + 7]
mov dword [ebp + 0xb], edi
mov dword [ebp + 7], ecx
mov dword [ebp + 0xf], edi
mov dword [ebp + 0x13], edi
mov edx, dword [esi + 0xe0]
mov eax, dword [esi + 0xdc]
mov ecx, edx
mov dword [esp + 0x14], ecx
inc ecx
cmp ecx, edi
jne 0x408762
cmp eax, edi
je 0x408751
push eax
mov dword [esp + 0x28], edx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov dword [esi + 0xdc], edi
mov dword [esi + 0xe4], edi
mov dword [esi + 0xe0], edi
jmp 0x4088af
cmp eax, edi
jne 0x4087a8
lea edi, [ecx*4]
push edi
call sub.MFC42.DLL_operatornew
mov edx, eax
mov ecx, edi
mov dword [esi + 0xdc], edx
mov edi, edx
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
add esp, 4
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x14]
inc eax
mov dword [esi + 0xe4], eax
mov dword [esi + 0xe0], eax
jmp 0x4088af
cmp ecx, dword [esi + 0xe4]
jg 0x4087f1
cmp edx, ecx
jge 0x4087d7
mov eax, dword [esi + 0xdc]
sub ecx, edx
lea edx, [eax + edx*4]
xor eax, eax
mov edi, edx
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x14]
lea eax, [ecx + 1]
mov dword [esi + 0xe0], eax
jmp 0x4088af
jle 0x4087df
sub edx, ecx
mov dword [esp + 0x24], edx
mov ecx, dword [esp + 0x14]
lea eax, [ecx + 1]
mov dword [esi + 0xe0], eax
jmp 0x4088af
mov eax, dword [esi + 0xe8]
cmp eax, edi
jne 0x40881e
mov eax, edx
cdq
and edx, 7
add eax, edx
sar eax, 3
cmp eax, 4
jge 0x408812
mov eax, 4
jmp 0x40881e
cmp eax, 0x400
jle 0x40881e
mov eax, 0x400
mov edx, dword [esi + 0xe4]
add eax, edx
cmp ecx, eax
mov dword [esp + 0x20], eax
jl 0x408832
mov dword [esp + 0x20], ecx
mov edx, dword [esp + 0x20]
lea eax, [edx*4]
push eax
call sub.MFC42.DLL_operatornew
mov ecx, dword [esi + 0xe0]
mov esi, dword [esi + 0xdc]
shl ecx, 2
mov edx, ecx
mov edi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov dword [esp + 0x3c], eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x2c]
mov ecx, dword [esp + 0x18]
inc ecx
mov edx, dword [esi + 0xe0]
mov dword [esp + 0x28], ecx
sub ecx, edx
lea edi, [eax + edx*4]
xor eax, eax
rep stosd dword es:[edi], eax
mov eax, dword [esi + 0xdc]
push eax
call sub.MFC42.DLL_operatordelete
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
add esp, 8
mov dword [esi + 0xdc], edx
mov dword [esi + 0xe0], eax
mov dword [esi + 0xe4], ecx
mov edx, dword [esi + 0xdc]
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x30]
mov byte [esp + 0x148], 1
mov dword [edx + eax*4], ebp
call fcn.0041128a
lea ecx, [esp + 0x18]
mov byte [esp + 0x148], 0
call fcn.0041128a
xor edi, edi
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x1c]
inc eax
add ebx, 0xfb
cmp eax, ecx
mov dword [esp + 0x2c], eax
jb 0x4085c9
pop ebp
pop ebx
mov ecx, dword [esp + 8]
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
lea ecx, [esp + 0x2c]
mov dword [esp + 8], edi
mov dword [esp + 0x140], 0xffffffff
call fcn.0041128a
mov ecx, dword [esp + 0x138]
pop edi
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x13c
ret