Function at 0x4077b0
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x416176
push eax
mov eax, 0x407c
mov dword fs:[0], esp
call fcn.004151e0
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x409c]
xor ebp, ebp
mov esi, ecx
cmp edi, ebp
mov dword [esp + 0x18], esi
je 0x407b55
mov eax, dword [esi + 0x120]
push ebp
push 0x80
push 3
push ebp
push ebp
push bind
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ecx, eax
cmp ecx, 0xffffffff
mov dword [esp + 0x28], ecx
jne 0x407822
push ebp
push ebp
push 0x41e740
call sub.MFC42.DLL_AfxMessageBox
jmp 0x407b55
mov eax, dword [edi + 0x24]
push ebp
mov edx, eax
and edx, 0x1ff
sub eax, edx
mov edx, dword [edi + 0x28]
mov dword [esp + 0x30], edx
lea edx, [esp + 0x30]
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ecx, 0x806
xor eax, eax
lea edi, [esp + 0x5c]
mov dword [esp + 0x24], 0x5a5a5a5a
rep stosd dword es:[edi], eax
mov dword [esp + 0x14], ebp
mov dword [esp + 0x1c], ebp
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x4079d3
mov ecx, 0x2018
lea eax, [esp + 0x20]
push 0
sub ecx, ebp
push eax
mov eax, dword [esp + 0x30]
lea edx, [esp + ebp + 0x64]
push ecx
push edx
push eax
mov dword [esp + 0x34], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4079d3
mov eax, dword [esp + 0x20]
lea ebx, [esp + 0x5c]
test eax, eax
jbe 0x407949
mov edx, dword [ebx]
lea ecx, [esp + 0x24]
cmp edx, dword [ecx]
jne 0x40791c
lea ecx, [esp + 0x30]
mov ebp, ebx
lea eax, [esp + 0x5c]
push ecx
push ebx
sub ebp, eax
call fcn.00407290
mov edx, dword [esp + 0x58]
add esp, 8
lea eax, [edx + 0x10]
mov ecx, eax
and ecx, 3
je 0x4078e3
mov edx, 4
sub edx, ecx
add eax, edx
mov esi, dword [esp + 0x409c]
mov ecx, 9
lea edi, [esp + 0x30]
xor edx, edx
repe cmpsd dword [esi], dword es:[edi]
je 0x407933
mov ecx, dword [esp + 0x409c]
mov edx, dword [esp + 0x4c]
cmp edx, dword [ecx + 0x1c]
jbe 0x407914
mov edx, dword [esp + 0x48]
mov esi, dword [ecx + 0x18]
cmp edx, esi
jge 0x40793d
mov esi, dword [esp + 0x18]
add ebx, eax
jmp 0x40791d
inc ebx
mov eax, ebx
lea ecx, [esp + 0x5c]
sub eax, ecx
mov ecx, dword [esp + 0x20]
cmp eax, ecx
jb 0x4078ac
jmp 0x407949
mov dword [esp + 0x14], 1
jmp 0x407945
mov dword [esp + 0x1c], 1
mov esi, dword [esp + 0x18]
cmp ebp, 0x2018
jne 0x407959
mov dword [esp + 0x1c], 1
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x4079d3
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x4079d3
lea edx, [esp + 0x5c]
sub ebx, edx
cmp ebx, 0x2018
je 0x4079cc
mov eax, 0x2018
lea esi, [esp + ebp + 0x5c]
sub eax, ebp
lea edi, [esp + 0x2074]
mov ecx, eax
mov ebp, eax
mov edx, ecx
xor eax, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x806
lea edi, [esp + 0x5c]
rep stosd dword es:[edi], eax
mov ecx, ebp
lea esi, [esp + 0x2074]
mov eax, ecx
lea edi, [esp + 0x5c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x18]
jmp 0x407861
xor ebp, ebp
jmp 0x407861
mov ecx, dword [esp + 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x14]
push 0
test eax, eax
push 0
jne 0x4079f9
push 0x41e730
call sub.MFC42.DLL_AfxMessageBox
jmp 0x407b55
mov edx, dword [esi + 0x80]
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
push 0x18b
push edx
call edi
test eax, eax
je 0x407a39
mov eax, dword [esi + 0x80]
push 0
push 0
push 0x182
push eax
call edi
mov ecx, dword [esi + 0x80]
push 0
push 0
push 0x18b
push ecx
call edi
test eax, eax
jne 0x407a11
mov edx, dword [esp + 0x409c]
lea eax, [esp + ebp + 0x5c]
lea ecx, [esp + 0x10]
mov dword [esp + 0x24], eax
mov ebx, dword [edx + 0x20]
sub ebx, 0x18
call sub.MFC42.DLL_CString::CString
xor ebp, ebp
add ebx, 0x18
cmp ebx, ebp
mov dword [esp + 0x4094], ebp
jle 0x407b10
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString
mov edx, dword [esp + 0x24]
xor ecx, ecx
lea eax, [esp + 0x14]
mov byte [esp + 0x4094], 1
mov cl, byte [edx + ebp]
push ecx
push str._02X
push eax
call sub.MFC42.DLL_CString::Format
mov ecx, ebp
add esp, 0xc
and ecx, 0x8000000f
jns 0x407aa7
dec ecx
or ecx, 0xfffffff0
inc ecx
jne 0x407ae8
mov edx, dword [esp + 0x10]
mov eax, dword [edx - 8]
test eax, eax
je 0x407ae8
mov eax, dword [esi + 0x80]
push 0
push 0
push 0x18b
push eax
call edi
mov ecx, dword [esp + 0x10]
mov edx, dword [esi + 0x80]
push ecx
push eax
push 0x181
push edx
call edi
push 0x41f968
lea ecx, [esp + 0x14]
call fcn.00414b48
lea eax, [esp + 0x14]
lea ecx, [esp + 0x10]
push eax
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x14]
mov byte [esp + 0x4094], 0
call fcn.00414b42
inc ebp
cmp ebp, ebx
jl 0x407a6b
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx - 8]
test eax, eax
je 0x407b41
mov edx, dword [esi + 0x80]
push 0
push 0
push 0x18b
push edx
call edi
mov ecx, dword [esp + 0x10]
mov edx, dword [esi + 0x80]
push ecx
push eax
push 0x181
push edx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x4094], 0xffffffff
call fcn.00414b42
mov ecx, dword [esp + 0x408c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x4088
ret 4