Function at 0x415f30
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49e112
mov eax, dword fs:[0]
push eax
sub esp, 0x2a4
mov eax, dword [0x4b4d40]
xor eax, ebp
mov dword [ebp - 0x1c], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x2a8], ecx
mov eax, dword [ebp + 8]
push eax
push str.data___s
lea ecx, [ebp - 0x11c]
push ecx
call dword [sym.imp.MSVCR90.dll_sprintf]
add esp, 0xc
lea ecx, [ebp - 0x18]
call fcn.00424930
lea edx, [ebp - 0x244]
push edx
mov ecx, dword [ebp - 0x2a8]
add ecx, 4
call fcn.00423680
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], edx
jmp 0x415fb6
push 0
lea eax, [ebp - 0x24c]
push eax
lea ecx, [ebp - 0x18]
call fcn.00434500
lea ecx, [ebp - 0x254]
push ecx
mov ecx, dword [ebp - 0x2a8]
add ecx, 4
call fcn.00436f20
push eax
lea ecx, [ebp - 0x18]
call fcn.00457330
movzx edx, al
test edx, edx
je 0x416006
lea ecx, [ebp - 0x18]
call fcn.00434b60
mov eax, dword [eax]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.MSVCR90.dll__stricmp]
add esp, 8
test eax, eax
jne 0x416004
xor eax, eax
jmp 0x41630c
jmp 0x415fa5
push 0x14c
call fcn.0049cc04
add esp, 4
mov dword [ebp - 0x25c], eax
mov dword [ebp - 4], 0
cmp dword [ebp - 0x25c], 0
je 0x41603c
mov ecx, dword [ebp - 0x25c]
call fcn.004169b0
mov dword [ebp - 0x2ac], eax
jmp 0x416046
mov dword [ebp - 0x2ac], 0
mov eax, dword [ebp - 0x2ac]
mov dword [ebp - 0x258], eax
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x258]
mov dword [ebp - 0x10], ecx
push 0x4a2528
lea edx, [ebp - 0x11c]
push edx
call dword [sym.imp.MSVCR90.dll_fopen]
add esp, 8
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x100], eax
mov edx, dword [ebp - 0x10]
cmp dword [edx + 0x100], 0
je 0x4162cd
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call sub.MSVCR90.dll_strcpy
add esp, 8
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x100]
push eax
mov ecx, dword [ebp - 0x10]
add ecx, 0x104
push ecx
call fcn.00415bb0
add esp, 8
xor ecx, ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x104]
mov edx, 0x120
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0049cb7c
add esp, 4
mov dword [ebp - 0x260], eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x260]
mov dword [eax + 0x108], ecx
push 0
push 0x20
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x100]
push eax
call dword [sym.imp.MSVCR90.dll_fseek]
add esp, 0xc
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x100]
push edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x104]
push ecx
push 0x120
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x108]
push eax
call dword [sym.imp.MSVCR90.dll_fread]
add esp, 0x10
mov dword [ebp - 0x120], 0
jmp 0x416151
mov ecx, dword [ebp - 0x120]
add ecx, 1
mov dword [ebp - 0x120], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x120]
cmp eax, dword [edx + 0x104]
jge 0x4162b4
mov ecx, dword [ebp - 0x120]
imul ecx, ecx, 0x120
mov edx, dword [ebp - 0x10]
add ecx, dword [edx + 0x108]
push ecx
lea ecx, [ebp - 0x13c]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
mov dword [ebp - 4], 1
mov eax, dword [sym.imp.MSVCR90.dll_tolower]
push eax
lea ecx, [ebp - 0x268]
push ecx
lea ecx, [ebp - 0x13c]
call dword [sym.imp.MSVCP90.dll_public:_class_std::_String_iterator_char__struct_std::char_traits_char___class_std::allocator_char_____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::begin_void_]
mov edx, dword [eax + 4]
push edx
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x270]
push ecx
lea ecx, [ebp - 0x13c]
call dword [sym.imp.MSVCP90.dll_public:_class_std::_String_iterator_char__struct_std::char_traits_char___class_std::allocator_char_____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::end_void_]
mov edx, dword [eax + 4]
push edx
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x278]
push ecx
lea ecx, [ebp - 0x13c]
call dword [sym.imp.MSVCP90.dll_public:_class_std::_String_iterator_char__struct_std::char_traits_char___class_std::allocator_char_____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::begin_void_]
mov edx, dword [eax + 4]
push edx
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x280]
push ecx
call fcn.00417630
add esp, 0x20
mov esi, dword [ebp - 0x120]
imul esi, esi, 0x120
mov edx, dword [ebp - 0x10]
add esi, dword [edx + 0x108]
lea eax, [ebp - 0x13c]
push eax
mov ecx, dword [ebp - 0x10]
add ecx, 0x10c
call fcn.00416a20
mov dword [eax], esi
lea ecx, [ebp - 0x13c]
call dword [sym.imp.MSVCP90.dll_protected:_char____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Myptr_void_]
push eax
lea ecx, [ebp - 0x23c]
push ecx
call sub.MSVCR90.dll_strcpy
add esp, 8
lea edx, [ebp - 0x23c]
push edx
call fcn.004615a0
add esp, 4
lea eax, [ebp - 0x23c]
push eax
lea ecx, [ebp - 0x29c]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
mov byte [ebp - 4], 2
mov esi, dword [ebp - 0x120]
imul esi, esi, 0x120
mov ecx, dword [ebp - 0x10]
add esi, dword [ecx + 0x108]
lea edx, [ebp - 0x29c]
push edx
mov ecx, dword [ebp - 0x10]
add ecx, 0x12c
call fcn.00416a20
mov dword [eax], esi
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x29c]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x13c]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
jmp 0x416142
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x2a8]
add ecx, 4
call fcn.00457820
mov eax, dword [ebp - 0x10]
jmp 0x41630c
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x2a4], ecx
mov edx, dword [ebp - 0x2a4]
mov dword [ebp - 0x2a0], edx
cmp dword [ebp - 0x2a0], 0
je 0x416300
push 1
mov ecx, dword [ebp - 0x2a0]
call fcn.00416920
mov dword [ebp - 0x2b0], eax
jmp 0x41630a
mov dword [ebp - 0x2b0], 0
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.0049cb8e
mov esp, ebp
pop ebp
ret 4