Function at 0x404c08
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x412524
call sub.MSVCRT.dll__EH_prolog
sub esp, 0x434
push ebx
push esi
push edi
xor ebx, ebx
xor eax, eax
lea edi, [ebp - 0x37]
mov byte [ebp - 0x38], bl
lea ecx, [ebp - 0x24]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x1c], ebx
stosb byte es:[edi], al
xor esi, esi
call sub.MFC42.DLL_CString::CString
mov dword [ebp - 4], ebx
call sub.MFC42.DLL_AfxGetModuleState
mov ecx, dword [eax + 4]
call sub.MFC42.DLL_CCmdTarget::BeginWaitCursor
push 0x41a178
mov byte [ebp - 4], 1
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.dll_fopen]
pop ecx
cmp eax, ebx
pop ecx
mov dword [ebp - 0x18], eax
jne 0x404c7e
mov byte [ebp - 4], bl
call sub.MFC42.DLL_AfxGetModuleState
mov ecx, dword [eax + 4]
call sub.MFC42.DLL_CCmdTarget::EndWaitCursor
xor esi, esi
jmp 0x404e47
lea ecx, [ebp - 0x24]
call sub.MFC42.DLL_CString::Empty
push 2
pop edi
push dword [ebp - 0x18]
lea eax, [ebp - 0x440]
push 0x400
push 1
push eax
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x10
cmp eax, ebx
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x20], ebx
jle 0x404da3
mov eax, dword [ebp - 0x10]
lea eax, [eax*4 + 0x1c23750]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x20]
mov ecx, esi
sub ecx, ebx
mov al, byte [ebp + eax - 0x440]
je 0x404d8d
dec ecx
je 0x404d5c
dec ecx
je 0x404d16
sub ecx, 0xd
jne 0x404d94
cmp al, 0x39
jne 0x404d68
push 0x14
lea eax, [ebp - 0x38]
push ebx
push eax
mov esi, edi
mov dword [ebp + 8], 3
call sub.MSVCRT.dll_memset
add esp, 0xc
mov byte [ebp - 0x38], 0x31
mov byte [ebp - 0x37], 0x35
mov byte [ebp - 0x36], 0x39
mov dword [ebp - 0x1c], 3
jmp 0x404d94
cmp al, 0x30
jl 0x404d68
cmp al, 0x39
jg 0x404d68
mov ecx, dword [ebp - 0x1c]
inc dword [ebp - 0x1c]
inc dword [ebp + 8]
cmp dword [ebp + 8], 0xb
mov byte [ebp + ecx - 0x38], al
jl 0x404d94
push ecx
lea eax, [ebp - 0x38]
mov ecx, esp
mov dword [ebp - 0x40], esp
push eax
call sub.MFC42.DLL_CString::CString_2
call fcn.00407486
pop ecx
mov ecx, dword [ebp - 0x14]
cmp ecx, 0x23c4950
mov dword [ecx], eax
jge 0x404d68
inc dword [ebp - 0x10]
add dword [ebp - 0x14], 4
jmp 0x404d68
cmp al, 0x35
jne 0x404d64
push 0xf
jmp 0x404d93
cmp al, 0x33
je 0x404d6c
xor esi, esi
jmp 0x404d94
push 0x14
lea eax, [ebp - 0x38]
push ebx
push eax
mov esi, edi
mov dword [ebp + 8], edi
call sub.MSVCRT.dll_memset
add esp, 0xc
mov byte [ebp - 0x38], 0x31
mov byte [ebp - 0x37], 0x33
mov dword [ebp - 0x1c], edi
jmp 0x404d94
cmp al, 0x31
jne 0x404d94
push 1
pop esi
inc dword [ebp - 0x20]
mov eax, dword [ebp - 0x3c]
cmp dword [ebp - 0x20], eax
jl 0x404cbe
cmp eax, 0x400
je 0x404c89
push dword [ebp - 0x18]
call dword [sym.imp.MSVCRT.dll_fclose]
pop ecx
mov ecx, dword [ebp - 0x10]
or dword [ecx*4 + 0x1c23750], 0xffffffff
cmp ecx, ebx
je 0x404c67
mov esi, 0x1482550
xor edx, edx
mov eax, esi
cmp dword [eax], 0xffffffff
je 0x404de4
add eax, 4
inc edx
cmp eax, 0x1c23750
jl 0x404dd4
cmp ecx, ebx
mov dword [ebp - 0x10], ebx
jle 0x404e34
mov dword [ebp - 0x14], 0x1c23750
mov dword [ebp - 0x18], ecx
cmp edx, ebx
mov dword [ebp + 8], ebx
jle 0x404e2b
mov eax, dword [ebp - 0x14]
mov ecx, esi
mov edi, dword [eax]
lea eax, [edx*4 + 0x148254c]
cmp edi, dword [ecx]
jne 0x404e1e
mov ebx, dword [eax]
mov dword [ecx], ebx
or dword [eax], 0xffffffff
dec edx
sub eax, 4
inc dword [ebp - 0x10]
jmp 0x404e24
inc dword [ebp + 8]
add ecx, 4
cmp dword [ebp + 8], edx
jl 0x404e0a
xor ebx, ebx
add dword [ebp - 0x14], 4
dec dword [ebp - 0x18]
jne 0x404df5
mov byte [ebp - 4], bl
call sub.MFC42.DLL_AfxGetModuleState
mov ecx, dword [eax + 4]
call sub.MFC42.DLL_CCmdTarget::EndWaitCursor
mov esi, dword [ebp - 0x10]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.004111d0
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 4