Function at 0x411680
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x30
push ebx
push ebp
push esi
xor ebx, ebx
push edi
mov esi, ecx
cmp eax, ebx
jne 0x41169c
call dword [sym.imp.MSVCR90.dll___iob_func]
add eax, 0x40
mov edi, dword [esp + 0x4c]
mov dword [esi + 0x18], eax
cmp dword [edi + 4], ebx
je 0x411710
add edi, 0xc
jmp 0x4116b0
push 0x34
call sub.mfc90.dll_Ordinal_798
add esp, 4
cmp eax, ebx
je 0x411798
mov ecx, dword [edi - 0xc]
mov dword [eax], ecx
mov edx, dword [edi - 8]
mov dword [eax + 4], edx
mov ecx, dword [edi - 4]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ebx
mov edx, dword [edi]
mov dword [eax + 0x14], edx
mov ecx, dword [edi + 4]
mov dword [eax + 0x18], ecx
mov edx, dword [edi + 8]
mov dword [eax + 0x1c], edx
mov ecx, dword [edi + 0xc]
mov dword [eax + 0x20], ecx
mov edx, dword [edi + 0x10]
push eax
lea ebp, [esi + 0x1c]
push ebp
mov ecx, esi
mov dword [eax + 0x24], edx
call fcn.004113e0
cmp dword [ebp], ebx
je 0x4117c6
add edi, 0x20
cmp dword [edi - 8], ebx
jne 0x4116b0
mov edi, dword [esp + 0x50]
cmp dword [edi], ebx
je 0x411753
push 0x34
call sub.mfc90.dll_Ordinal_798
add esp, 4
cmp eax, ebx
je 0x4117f4
mov ecx, dword [edi]
mov dword [eax], ecx
mov edx, dword [edi + 4]
push eax
lea ebp, [esi + 0x20]
push ebp
mov ecx, esi
mov dword [eax + 4], edx
mov dword [eax + 0xc], ebx
call fcn.004113e0
cmp dword [ebp], ebx
je 0x411822
add edi, 8
cmp dword [edi], ebx
jne 0x411718
push 0x1000
call sub.mfc90.dll_Ordinal_265
add esp, 4
mov dword [esi], eax
cmp eax, ebx
jne 0x411850
mov ecx, dword [esi + 0x18]
mov edi, dword [sym.imp.MSVCR90.dll_fprintf]
push str._nError:_on_allocating_memory_for_token_scanner._n
push ecx
call edi
mov edx, dword [esi + 0x18]
push 0x428c98
push edx
call edi
add esp, 0x10
pop edi
pop esi
pop ebp
mov eax, 5
pop ebx
add esp, 0x30
ret 0x18
mov eax, dword [esi + 0x18]
mov edi, dword [sym.imp.MSVCR90.dll_fprintf]
push str._nError:_while_initializing_the_keyword_lookup_tree_for_the_HKP_KEYWORD_DEF_table._n
push eax
call edi
mov ecx, dword [esi + 0x18]
push 0x428abc
push ecx
call edi
add esp, 0x10
pop edi
pop esi
pop ebp
mov eax, 5
pop ebx
add esp, 0x30
ret 0x18
mov edx, dword [esi + 0x18]
mov edi, dword [sym.imp.MSVCR90.dll_fprintf]
push str._nError:_on_inserting_keyword_into_the_HKP_KEYWORD_DEF_table._n
push edx
call edi
mov eax, dword [esi + 0x18]
push 0x428b28
push eax
call edi
add esp, 0x10
pop edi
pop esi
pop ebp
mov eax, 7
pop ebx
add esp, 0x30
ret 0x18
mov eax, dword [esi + 0x18]
mov edi, dword [sym.imp.MSVCR90.dll_fprintf]
push str._nError:_while_initializing_the_keyword_lookup_tree_for_the_HKP_CONST_DEF_table._n
push eax
call edi
mov ecx, dword [esi + 0x18]
push 0x428bbc
push ecx
call edi
add esp, 0x10
pop edi
pop esi
pop ebp
mov eax, 5
pop ebx
add esp, 0x30
ret 0x18
mov edx, dword [esi + 0x18]
mov edi, dword [sym.imp.MSVCR90.dll_fprintf]
push str._nError:_on_inserting_keyword_into_the_HKP_CONST_DEF_table._n
push edx
call edi
mov eax, dword [esi + 0x18]
push str._check_for_problem_with_the_include_file_created_by_HKPcc__n_n
push eax
call edi
add esp, 0x10
pop edi
pop esi
pop ebp
mov eax, 7
pop ebx
add esp, 0x30
ret 0x18
mov ebp, dword [esp + 0x44]
mov byte [eax], bl
mov dword [esi + 4], ebx
cmp byte [esp + 0x58], bl
je 0x411895
mov edi, ebp
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x411864
sub edi, ecx
lea eax, [edi + 1]
push eax
call sub.mfc90.dll_Ordinal_265
add esp, 4
mov dword [esi + 0x2c], eax
mov ecx, ebp
mov edx, eax
mov al, byte [ecx]
mov byte [edx], al
inc ecx
inc edx
test al, al
jne 0x411880
mov ecx, dword [esi + 0x2c]
mov byte [edi + ecx], bl
jmp 0x411b57
push 0x428cc4
push ebp
call dword [sym.imp.MSVCR90.dll_fopen]
add esp, 8
mov dword [esi + 0x14], eax
cmp eax, ebx
jne 0x4118da
mov edx, dword [esi + 0x18]
mov edi, dword [sym.imp.MSVCR90.dll_fprintf]
push ebp
push str._nError:_on_opening_parser_input_file___s__for_reading._n
push edx
call edi
mov eax, dword [esi + 0x18]
push str._check_for_a_file_or_directory_permission_problem__n_n
push eax
call edi
add esp, 0x14
pop edi
pop esi
pop ebp
mov eax, 3
pop ebx
add esp, 0x30
ret 0x18
lea ecx, [esp + 0x1c]
push ecx
push ebp
call dword [sym.imp.MSVCR90.dll__stat32]
add esp, 8
test eax, eax
je 0x41191c
mov edx, dword [esi + 0x18]
mov edi, dword [sym.imp.MSVCR90.dll_fprintf]
push ebp
push str._nError:_while_trying_to_get_size_of_parser_input_file___s_._n
push edx
call edi
mov eax, dword [esi + 0x18]
push 0x428d78
push eax
call edi
add esp, 0x14
pop edi
pop esi
pop ebp
mov eax, 3
pop ebx
add esp, 0x30
ret 0x18
mov edi, dword [esp + 0x30]
push edi
call sub.mfc90.dll_Ordinal_265
add esp, 4
mov dword [esi + 0x2c], eax
cmp eax, ebx
jne 0x411972
push ebx
call sub.mfc90.dll_Ordinal_266
mov ecx, dword [esi + 0x14]
push ecx
mov dword [esi + 0x2c], ebx
call dword [sym.imp.MSVCR90.dll_fclose]
mov edx, dword [esi + 0x18]
mov edi, dword [sym.imp.MSVCR90.dll_fprintf]
push ebp
push 0x428d9c
push edx
call edi
mov eax, dword [esi + 0x18]
push 0x428dd8
push eax
call edi
add esp, 0x1c
pop edi
pop esi
pop ebp
mov eax, 5
pop ebx
add esp, 0x30
ret 0x18
mov ecx, dword [esi + 0x14]
mov ebx, dword [sym.imp.MSVCR90.dll_fread]
push ecx
push edi
push 1
push eax
call ebx
mov edx, dword [esi + 0x14]
push edx
call dword [sym.imp.MSVCR90.dll_ferror]
add esp, 0x14
test eax, eax
je 0x4119dc
mov eax, dword [esi + 0x2c]
push eax
call sub.mfc90.dll_Ordinal_266
mov ecx, dword [esi + 0x14]
push ecx
mov dword [esi + 0x2c], 0
call dword [sym.imp.MSVCR90.dll_fclose]
mov edx, dword [esi + 0x18]
mov edi, dword [sym.imp.MSVCR90.dll_fprintf]
push ebp
push str._nError:_while_trying_to_read_parser_input_file___s_._n
push edx
call edi
mov eax, dword [esi + 0x18]
push 0x428e3c
push eax
call edi
add esp, 0x1c
pop edi
pop esi
pop ebp
mov eax, 3
pop ebx
add esp, 0x30
ret 0x18
mov ecx, dword [esi + 0x14]
push ecx
push 1
lea edx, [esp + 0x60]
push 1
push edx
call ebx
mov eax, dword [esi + 0x14]
push eax
call dword [sym.imp.MSVCR90.dll_feof]
add esp, 0x14
test eax, eax
jne 0x411a45
mov ecx, dword [esi + 0x2c]
push ecx
call sub.mfc90.dll_Ordinal_266
mov edx, dword [esi + 0x14]
push edx
mov dword [esi + 0x2c], 0
call dword [sym.imp.MSVCR90.dll_fclose]
mov eax, dword [esi + 0x18]
mov edi, dword [sym.imp.MSVCR90.dll_fprintf]
push ebp
push str._nError:_while_trying_to_read_last_byte_in_parser_input_file___s_._n
push eax
call edi
mov ecx, dword [esi + 0x18]
push str._check_for_bad_or_corrupted_file__n_n
push ecx
call edi
add esp, 0x1c
pop edi
pop esi
pop ebp
mov eax, 3
pop ebx
add esp, 0x30
ret 0x18
mov edx, dword [esi + 0x2c]
xor eax, eax
push edx
push edi
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
call fcn.004133d0
cmp byte [esp + 0x54], 0
mov ebx, eax
jne 0x411aba
test ebx, ebx
jne 0x411abc
mov eax, dword [esi + 0x2c]
push eax
call sub.mfc90.dll_Ordinal_266
mov ecx, dword [esi + 0x14]
push ecx
mov dword [esi + 0x2c], ebx
call dword [sym.imp.MSVCR90.dll_fclose]
mov edx, dword [esi + 0x18]
mov edi, dword [sym.imp.MSVCR90.dll_fprintf]
push str._nError:_Unencrypted_data_can_not_be_imported._n
push edx
call edi
mov eax, dword [esi + 0x18]
push str._______Please_encrypt_the_data_and_try_again._n_n
push eax
call edi
mov ecx, dword [esp + 0x28]
push ecx
call sub.mfc90.dll_Ordinal_800
add esp, 0x1c
pop edi
pop esi
pop ebp
lea eax, [ebx + 3]
pop ebx
add esp, 0x30
ret 0x18
test ebx, ebx
jle 0x411b48
sub edi, ebx
push edi
call sub.mfc90.dll_Ordinal_265
mov edx, dword [esi + 0x2c]
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x411b24
push edx
call sub.mfc90.dll_Ordinal_266
mov eax, dword [esi + 0x14]
push eax
mov dword [esi + 0x2c], ebp
call dword [sym.imp.MSVCR90.dll_fclose]
mov ecx, dword [esp + 0x4c]
mov edx, dword [esi + 0x18]
mov edi, dword [sym.imp.MSVCR90.dll_fprintf]
push ecx
push str._nError:_on_allocating_memory_for_parser_input_file___s_._n
push edx
call edi
mov eax, dword [esi + 0x18]
push str._check_for_sufficient_memory_on_system__n_n
push eax
call edi
mov ecx, dword [esp + 0x2c]
push ecx
call sub.mfc90.dll_Ordinal_800
add esp, 0x20
pop edi
pop esi
lea eax, [ebp + 5]
pop ebp
pop ebx
add esp, 0x30
ret 0x18
push edi
add edx, ebx
push edx
push ebp
call sub.MSVCR90.dll_memcpy
mov eax, dword [esi + 0x2c]
push eax
call sub.mfc90.dll_Ordinal_266
add esp, 0x10
push ebp
push edi
lea ecx, [esp + 0x18]
mov dword [esi + 0x2c], ebp
call fcn.00413490
mov ecx, dword [esp + 0x10]
push ecx
call sub.mfc90.dll_Ordinal_800
add esp, 4
xor ebx, ebx
mov eax, dword [esi + 0x2c]
mov ecx, dword [esp + 0x50]
lea edx, [eax + edi]
mov dword [esi + 0x34], eax
mov eax, 1
mov dword [esi + 8], eax
mov dword [esi + 0x10], eax
mov eax, dword [esp + 0x4c]
pop edi
mov dword [esi + 0xc], ebx
mov dword [esi + 0x24], eax
mov dword [esi + 0x30], edx
mov dword [esi + 0x28], ecx
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x30
ret 0x18