Function at 0x42528e
Capabilities:
Print debug messages
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x434d38
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x8a0
mov dword [ebp - 0x8ac], ecx
push 0x400
lea eax, [ebp - 0x414]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x4252d6
xor al, al
jmp 0x4258f6
mov ecx, dword [ebp - 0x10]
sub ecx, 1
mov dword [ebp - 0x45c], ecx
mov edx, dword [ebp - 0x10]
sub edx, 1
mov dword [ebp - 0x45c], edx
jmp 0x4252ff
mov eax, dword [ebp - 0x45c]
sub eax, 1
mov dword [ebp - 0x45c], eax
cmp dword [ebp - 0x45c], 0
jle 0x42531f
mov ecx, dword [ebp - 0x45c]
movsx edx, byte [ebp + ecx - 0x414]
cmp edx, 0x5c
jne 0x42531d
jmp 0x42531f
jmp 0x4252f0
cmp dword [ebp - 0x45c], 0
jg 0x42532f
xor al, al
jmp 0x4258f6
mov eax, dword [ebp - 0x45c]
mov byte [ebp + eax - 0x413], 0
lea ecx, [ebp - 0x414]
push ecx
mov ecx, 0x43e558
call dword [0x4360bc]
lea edx, [ebp - 0x414]
push edx
lea eax, [ebp - 0x860]
push eax
call sub.MSVCRT.dll_strcpy
add esp, 8
lea ecx, [ebp - 0x414]
push ecx
call sub.MSVCRT.dll_strlen
add esp, 4
mov dword [ebp - 0x458], eax
mov edx, dword [ebp - 0x458]
sub edx, 2
mov dword [ebp - 0x460], edx
mov eax, dword [ebp - 0x458]
sub eax, 2
mov dword [ebp - 0x460], eax
jmp 0x4253a9
mov ecx, dword [ebp - 0x460]
sub ecx, 1
mov dword [ebp - 0x460], ecx
cmp dword [ebp - 0x460], 0
jle 0x4253c9
mov edx, dword [ebp - 0x460]
movsx eax, byte [ebp + edx - 0x860]
cmp eax, 0x5c
jne 0x4253c7
jmp 0x4253c9
jmp 0x42539a
cmp dword [ebp - 0x460], 0
jg 0x4253d9
xor al, al
jmp 0x4258f6
mov ecx, dword [ebp - 0x460]
mov byte [ebp + ecx - 0x85f], 0
mov byte [ebp - 0x454], 1
push 0x43dd34
lea edx, [ebp - 0x414]
push edx
call sub.MSVCRT.dll_strcat
add esp, 8
push 4
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.MSVCRT.dll__access]
add esp, 8
cmp eax, 0xffffffff
jne 0x425454
mov byte [ebp - 0x454], 0
push 0x43dd40
lea ecx, [ebp - 0x860]
push ecx
call sub.MSVCRT.dll_strcat
add esp, 8
push 4
lea edx, [ebp - 0x860]
push edx
call dword [sym.imp.MSVCRT.dll__access]
add esp, 8
cmp eax, 0xffffffff
jne 0x425452
xor al, al
jmp 0x4258f6
jmp 0x42545b
mov byte [ebp - 0x454], 1
lea eax, [ebp - 0x438]
push eax
call fcn.0041de63
add esp, 4
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x454]
and ecx, 0xff
test ecx, ecx
je 0x4254a1
push 0x43dd4c
lea edx, [ebp - 0x414]
push edx
call dword [sym.imp.MSVCRT.dll_fopen]
add esp, 8
mov ecx, dword [ebp - 0x8ac]
mov dword [ecx + 0x14], eax
jmp 0x4254bf
push 0x43dd50
lea edx, [ebp - 0x860]
push edx
call dword [sym.imp.MSVCRT.dll_fopen]
add esp, 8
mov ecx, dword [ebp - 0x8ac]
mov dword [ecx + 0x14], eax
mov edx, dword [ebp - 0x8ac]
cmp dword [edx + 0x14], 0
jne 0x4254f0
mov byte [ebp - 0x880], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x438]
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov al, byte [ebp - 0x880]
jmp 0x4258f6
push 0x43dd54
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 2
push 0
mov eax, dword [ebp - 0x8ac]
mov ecx, dword [eax + 0x14]
push ecx
call dword [sym.imp.MSVCRT.dll_fseek]
add esp, 0xc
mov edx, dword [ebp - 0x8ac]
mov eax, dword [edx + 0x14]
push eax
call dword [sym.imp.MSVCRT.dll_ftell]
add esp, 4
mov dword [ebp - 0x878], eax
push 0
push 0
mov ecx, dword [ebp - 0x8ac]
mov edx, dword [ecx + 0x14]
push edx
call dword [sym.imp.MSVCRT.dll_fseek]
add esp, 0xc
mov eax, dword [ebp - 0x878]
push eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [ebp - 0x884], eax
mov ecx, dword [ebp - 0x8ac]
mov edx, dword [ebp - 0x884]
mov dword [ecx + 0x1c], edx
mov eax, dword [ebp - 0x8ac]
cmp dword [eax + 0x1c], 0
jne 0x425597
mov byte [ebp - 0x888], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x438]
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov al, byte [ebp - 0x888]
jmp 0x4258f6
mov ecx, dword [ebp - 0x8ac]
mov edx, dword [ecx + 0x14]
push edx
mov eax, dword [ebp - 0x878]
push eax
push 1
mov ecx, dword [ebp - 0x8ac]
mov edx, dword [ecx + 0x1c]
push edx
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x10
cmp eax, dword [ebp - 0x878]
je 0x425626
mov eax, dword [ebp - 0x8ac]
mov ecx, dword [eax + 0x1c]
mov dword [ebp - 0x88c], ecx
mov edx, dword [ebp - 0x88c]
push edx
call fcn.004331e6
add esp, 4
mov eax, dword [ebp - 0x8ac]
mov ecx, dword [eax + 0x14]
push ecx
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
push 0x43dd6c
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov byte [ebp - 0x890], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x438]
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov al, byte [ebp - 0x890]
jmp 0x4258f6
mov edx, dword [ebp - 0x8ac]
mov eax, dword [edx + 0x14]
push eax
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
mov ecx, dword [ebp - 0x8ac]
mov edx, dword [ecx + 0x1c]
xor eax, eax
mov al, byte [edx + 2]
shl eax, 0x18
mov ecx, dword [ebp - 0x8ac]
mov edx, dword [ecx + 0x1c]
xor ecx, ecx
mov cl, byte [edx + 3]
shl ecx, 0x10
or eax, ecx
mov edx, dword [ebp - 0x8ac]
mov ecx, dword [edx + 0x1c]
xor edx, edx
mov dl, byte [ecx + 4]
shl edx, 8
or eax, edx
mov ecx, dword [ebp - 0x8ac]
mov edx, dword [ecx + 0x1c]
xor ecx, ecx
mov cl, byte [edx + 5]
or eax, ecx
mov dword [ebp - 0x43c], eax
mov ecx, 0x43e508
call fcn.004238a1
and eax, 0xff
test eax, eax
jne 0x4256c9
push 0x43dd78
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov byte [ebp - 0x894], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x438]
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov al, byte [ebp - 0x894]
jmp 0x4258f6
mov word [ebp - 0x87c], 0xb
mov edx, dword [ebp - 0x87c]
and edx, 0xffff
push edx
push 0x43dd84
lea eax, [ebp - 0x874]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
mov ecx, dword [ebp - 0x43c]
shr ecx, 0x18
mov byte [ebp - 0x86e], cl
mov edx, dword [ebp - 0x43c]
shr edx, 0x10
mov byte [ebp - 0x86d], dl
mov eax, dword [ebp - 0x43c]
shr eax, 8
mov byte [ebp - 0x86c], al
mov cl, byte [ebp - 0x43c]
mov byte [ebp - 0x86b], cl
mov edx, dword [ebp - 0x87c]
and edx, 0xffff
push edx
lea eax, [ebp - 0x874]
push eax
mov ecx, 0x43e508
call fcn.0041e3eb
and eax, 0xff
test eax, eax
jne 0x425783
push 0x43dd90
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov byte [ebp - 0x898], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x438]
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov al, byte [ebp - 0x898]
jmp 0x4258f6
push 0xbb8
mov word [ebp - 0x14], 0xb
mov ecx, dword [ebp - 0x14]
and ecx, 0xffff
push ecx
lea edx, [ebp - 0x450]
push edx
mov ecx, 0x43e508
call fcn.0041e545
and eax, 0xff
test eax, eax
jne 0x4257e2
push 0x43dd9c
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov byte [ebp - 0x89c], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x438]
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov al, byte [ebp - 0x89c]
jmp 0x4258f6
push 6
lea eax, [ebp - 0x450]
push eax
lea ecx, [ebp - 0x428]
push ecx
call sub.MSVCRT.dll_memcpy
add esp, 0xc
push 6
push 0x43dda8
lea edx, [ebp - 0x428]
push edx
call sub.MSVCRT.dll_memcmp
add esp, 0xc
test eax, eax
je 0x425844
push 0x43ddb0
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov byte [ebp - 0x8a0], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x438]
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov al, byte [ebp - 0x8a0]
jmp 0x4258f6
mov eax, dword [ebp - 0x446]
and eax, 0xff
cmp eax, 0x55
je 0x425881
push 0x43ddbc
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov byte [ebp - 0x8a4], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x438]
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov al, byte [ebp - 0x8a4]
jmp 0x4258f6
mov ecx, dword [ebp - 0x44a]
and ecx, 0xff
shl ecx, 0x18
mov edx, dword [ebp - 0x449]
and edx, 0xff
shl edx, 0x10
or ecx, edx
mov eax, dword [ebp - 0x448]
and eax, 0xff
shl eax, 8
or ecx, eax
mov edx, dword [ebp - 0x447]
and edx, 0xff
or ecx, edx
mov eax, dword [ebp - 0x8ac]
mov dword [eax + 0x244], ecx
push 0x43ddc8
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov byte [ebp - 0x8a8], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x438]
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov al, byte [ebp - 0x8a8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret