Function at 0x403b50
Capabilities:
Read file on windows
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40578a
mov eax, dword fs:[0]
push eax
sub esp, 0x184
mov eax, dword [0x409018]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x190]
push eax
mov dword [ebp - 4], 1
call fcn.00403f50
push 0x40630c
push str.lineitem.tbl
mov byte [ebp - 4], 2
call dword [sym.imp.MSVCR100.dll_fopen]
add esp, 8
mov dword [ebp - 0xdc], eax
test eax, eax
jne 0x403bde
mov ecx, dword [sym.imp.MSVCP100.dll_class_std::basic_ostream_char__struct_std::char_traits_char______cdecl_std::endl_class_std::basic_ostream_char__struct_std::char_traits_char____]
mov edx, dword [sym.imp.MSVCP100.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
push ecx
push ecx
push str.Error.
push edx
call fcn.004042f0
add esp, 0xc
mov ecx, eax
call dword [sym.imp.MSVCP100.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
push 1
call dword [sym.imp.MSVCR100.dll_exit]
mov ebx, dword [ebp + 0x14]
push eax
push 1
add ebx, 0x2000
push 0x2000
push ebx
xor edi, edi
call dword [sym.imp.MSVCR100.dll_fread]
add esp, 0x10
test eax, eax
je 0x403cbc
lea eax, [ebx + 0x1fff]
mov esi, ebx
cmp ebx, eax
ja 0x403c90
mov al, byte [esi]
cmp al, 0xa
jne 0x403c7d
mov byte [ebp + edi - 0xd8], 0
xor eax, eax
cmp byte [ebp - 0xd8], 0x7c
je 0x403c42
lea ecx, [ebp - 0xd8]
movsx edx, byte [ecx]
inc ecx
cmp byte [ecx], 0x7c
lea eax, [eax + eax*4]
lea eax, [edx + eax*2 - 0x30]
jne 0x403c32
lea ecx, [ebp - 0xd8]
push ecx
push eax
lea edx, [ebp + 8]
push edx
call fcn.00403610
mov eax, dword [sym.imp.MSVCP100.dll_class_std::basic_ostream_char__struct_std::char_traits_char______cdecl_std::endl_class_std::basic_ostream_char__struct_std::char_traits_char____]
mov edx, dword [sym.imp.MSVCP100.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
push eax
push ecx
lea ecx, [ebp - 0xd8]
push ecx
push edx
call fcn.004042f0
add esp, 0xc
mov ecx, eax
call dword [sym.imp.MSVCP100.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
or edi, 0xffffffff
jmp 0x403c84
mov byte [ebp + edi - 0xd8], al
inc esi
lea eax, [ebx + 0x1fff]
inc edi
cmp esi, eax
jbe 0x403c13
dec esi
cmp byte [esi], 0xa
je 0x403c9c
dec esi
cmp byte [esi], 0xa
jne 0x403c96
mov eax, dword [ebp - 0xdc]
push eax
push 1
push 0x2000
push ebx
call dword [sym.imp.MSVCR100.dll_fread]
add esp, 0x10
test eax, eax
jne 0x403c03
cmp dword [ebp - 0x12c], 0
lea esi, [ebp - 0x180]
je 0x403cec
mov ebx, esi
call fcn.004020e0
test al, al
jne 0x403cd8
xor esi, esi
mov ecx, dword [ebp - 0x12c]
push ecx
call dword [sym.imp.MSVCR100.dll_fclose]
add esp, 4
test eax, eax
je 0x403cee
xor esi, esi
lea ecx, [ebp - 0x180]
mov byte [ebp - 0x130], 0
mov byte [ebp - 0x137], 0
call dword [sym.imp.MSVCP100.dll_protected:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::_Init_void_]
mov edx, dword [0x409634]
xor edi, edi
mov dword [ebp - 0x12c], edi
mov dword [ebp - 0x134], edx
mov dword [ebp - 0x13c], edi
cmp esi, edi
jne 0x403d3f
mov eax, dword [ebp - 0x190]
mov ecx, dword [eax + 4]
push edi
push 2
lea ecx, [ebp + ecx - 0x190]
call dword [sym.imp.MSVCP100.dll_public:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool_]
mov edx, dword [ebp - 0x190]
mov eax, dword [edx + 4]
lea ecx, [ebp - 0x128]
mov dword [ebp - 0xdc], ecx
mov dword [ebp + eax - method.std::basic_ifstream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
lea ecx, [ebp - 0x180]
mov byte [ebp - 4], 3
call fcn.00401470
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x190]
mov edx, dword [ecx + 4]
mov eax, dword [sym.imp.MSVCP100.dll_const_std::basic_istream_char__struct_std::char_traits_char__::vftable]
lea ecx, [ebp - 0x128]
mov dword [ebp + edx - 0x190], eax
call dword [sym.imp.MSVCP100.dll_public_virtual:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::destructor_void_]
mov byte [ebp - 4], 0
mov ecx, dword [ebp + 0x14]
push ecx
call dword [sym.imp.MSVCR100.dll_free]
mov eax, dword [ebp + 0x18]
add esp, 4
cmp eax, edi
je 0x403dc9
mov edx, dword [eax - 4]
lea esi, [eax - 4]
push 0x401080
push edx
push 0x1c
push eax
call fcn.00404920
push esi
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
add esp, 4
cmp dword [ebp + 0x38], 0x10
jb 0x403ddc
mov eax, dword [ebp + 0x24]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00404843
mov esp, ebp
pop ebp
ret