Function at 0x40a9c0
Capabilities:
Access peb ldr_data
Read file on windows

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x40ced6
push eax
mov eax, 0x1400
mov dword fs:[0], esp
call fcn.0040c5b0
push ebp
mov dword [esp + 0x18], ecx
push esi
xor ebp, ebp
push edi
lea ecx, [esp + 0x28]
mov dword [esp + 0x1c], 1
mov dword [esp + 0x24], ebp
mov dword [esp + 0x18], ebp
call sub.MFC42.DLL_CStringArray::CStringArray
lea ecx, [esp + 0xc]
mov dword [esp + 0x1414], ebp
call sub.MFC42.DLL_CString::CString
mov edi, 0x4115d0
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x1c8]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov byte [esp + 0x1414], 1
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]
push ecx
push 0x4115d0
push 0x4115c8
call dword [0x413048]
cmp dword [esp + 0x18], ebp
jbe 0x40acfb
push ebx
mov ecx, 0x1f
xor eax, eax
lea edi, [esp + 0x14d]
mov byte [esp + 0x14c], 0
rep stosd dword es:[edi], eax
lea edx, [esp + 0x17]
mov ecx, 0x1f
lea edi, [esp + 0x4d]
push 0xa
mov byte [esp + 0x50], al
push edx
rep stosd dword es:[edi], eax
push ebp
mov dword [esp + 0x4c], 0x7d
xor bl, bl
call dword [sym.imp.MSVCRT.dll__itoa]
movsx eax, byte [esp + 0x23]
add esp, 0xc
lea ecx, [esp + 0x14c]
push 0x5d
push eax
push 0x5b
push 0x4115c0
push 0x4115b4
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x18
lea edx, [esp + 0x40]
lea eax, [esp + 0x4c]
lea ecx, [esp + 0x14c]
push edx
push eax
push ecx
push 0x4115c8
call dword [0x413044]
mov ax, word [0x4115b0]
mov edx, dword [0x4115ac]
mov word [esp + 0x48], ax
mov ecx, 0x1f
xor eax, eax
lea edi, [esp + 0xcd]
mov byte [esp + 0xcc], bl
mov dword [esp + 0x44], edx
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x44]
lea edx, [esp + 0x4c]
push ecx
push edx
call dword [sym.imp.MSVCRT.dll_strstr]
add esp, 8
test eax, eax
je 0x40ab74
mov eax, dword [esp + 0x40]
lea esi, [esp + 0x51]
lea edi, [esp + 0xcc]
mov bl, 1
lea edx, [eax - 5]
mov ecx, edx
mov eax, ecx
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, 0x1f
lea edi, [esp + 0x4c]
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
mov ecx, edx
lea esi, [esp + 0xcc]
lea edi, [esp + 0x4c]
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, 0x412aa4
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x1cc]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x104
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 + 0x1d0]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jbe 0x40abfd
lea edx, [esp + 0x1cc]
push 0x5c
push edx
call dword [sym.imp.MSVCRT.dll_strrchr]
mov byte [eax + 1], 0
lea edi, [esp + 0x54]
or ecx, 0xffffffff
xor eax, eax
add esp, 8
lea edx, [esp + 0x1cc]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
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]
lea eax, [esp + 0x2d0]
lea ecx, [esp + 0x1cc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
push 0
push 0x80
push 3
mov edi, 1
push 0
push edi
lea edx, [esp + 0x1e0]
push 0x80000000
push edx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
lea ecx, [esp + 0x18]
push 0
push ecx
lea edx, [esp + 0x418]
push 0x1000
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
test bl, bl
je 0x40aca1
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x410]
push eax
push ecx
push 0x4115a0
call fcn.00408060
test eax, eax
jne 0x40ace3
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x410]
push edx
push eax
push 0x4115a0
mov dword [esp + 0x34], edi
call fcn.00407f20
test eax, eax
jne 0x40ace3
jmp 0x40acdb
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x410]
push ecx
push edx
push 0x411598
call fcn.00408060
test eax, eax
jne 0x40ace3
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x410]
push eax
push ecx
push 0x411598
mov dword [esp + 0x34], edi
call fcn.00407f20
test eax, eax
jne 0x40ace3
mov dword [esp + 0x20], 0
mov eax, dword [esp + 0x1c]
inc ebp
cmp ebp, eax
jb 0x40aa62
mov eax, dword [esp + 0x28]
pop ebx
test eax, eax
jne 0x40ad2f
xor ebp, ebp
push 0xffffffffffffffff
push ebp
lea ecx, [esp + 0x30]
call sub.MFC42.DLL_CStringArray::SetSize
push 0x92
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::LoadStringA
mov eax, dword [esp + 0x30]
lea edx, [esp + 0xc]
push edx
push eax
lea ecx, [esp + 0x30]
call sub.MFC42.DLL_CStringArray::SetAtGrow
push 0x93
jmp 0x40ad98
mov eax, dword [esp + 0x1c]
push 0xffffffffffffffff
cmp eax, 1
push 0
lea ecx, [esp + 0x30]
jne 0x40ad6d
call sub.MFC42.DLL_CStringArray::SetSize
push 0x92
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::LoadStringA
mov eax, dword [esp + 0x30]
lea edx, [esp + 0xc]
push edx
push eax
lea ecx, [esp + 0x30]
call sub.MFC42.DLL_CStringArray::SetAtGrow
push 0xe05d
jmp 0x40ad98
call sub.MFC42.DLL_CStringArray::SetSize
push 0x92
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::LoadStringA
mov eax, dword [esp + 0x30]
lea edx, [esp + 0xc]
push edx
push eax
lea ecx, [esp + 0x30]
call sub.MFC42.DLL_CStringArray::SetAtGrow
push 0x94
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::LoadStringA
mov edx, dword [esp + 0x30]
lea ecx, [esp + 0xc]
push ecx
push edx
lea ecx, [esp + 0x30]
call sub.MFC42.DLL_CStringArray::SetAtGrow
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x28]
push eax
add ecx, 0x68
call fcn.00406cc0
lea ecx, [esp + 0xc]
mov byte [esp + 0x1414], 0
call fcn.0040c2d6
lea ecx, [esp + 0x28]
mov dword [esp + 0x1414], 0xffffffff
call fcn.0040c53a
mov ecx, dword [esp + 0x140c]
pop edi
pop esi
mov eax, 1
pop ebp
mov dword fs:[0], ecx
add esp, 0x140c
ret