Function at 0x42bdcd
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x434edf
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x450
push edi
mov dword [ebp - 0x450], ecx
mov dword [ebp - 0x414], 0
mov dword [ebp - 0x420], 0
mov byte [ebp - 0x424], 0
mov ecx, dword [ebp + 0x14]
call fcn.00415100
mov eax, dword [ebp + 8]
and eax, 0xff
mov dword [ebp - 0x454], eax
mov ecx, dword [ebp - 0x454]
sub ecx, 5
mov dword [ebp - 0x454], ecx
cmp dword [ebp - 0x454], 3
ja case.default.0x42be41
mov edx, dword [ebp - 0x454]
jmp dword [edx*4 + 0x42c46f]
mov byte [ebp - 0x424], 0x20
jmp 0x42be73
mov byte [ebp - 0x424], 0x28
jmp 0x42be73
mov byte [ebp - 0x424], 0x30
jmp 0x42be73
mov byte [ebp - 0x424], 0x38
jmp 0x42be73
xor al, al
jmp 0x42c45e
push 0
mov eax, dword [ebp - 0x424]
and eax, 0xff
push eax
mov ecx, dword [ebp - 0x450]
mov edx, dword [ecx + 0x14]
push edx
call dword [sym.imp.MSVCRT.dll_fseek]
add esp, 0xc
mov eax, dword [ebp - 0x450]
mov ecx, dword [eax + 0x14]
push ecx
push 1
push 4
lea edx, [ebp - 0x414]
push edx
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x10
mov eax, dword [ebp - 0x450]
mov ecx, dword [eax + 0x14]
push ecx
push 1
push 4
lea edx, [ebp - 0x420]
push edx
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x10
push 0
mov eax, dword [ebp - 0x414]
push eax
mov ecx, dword [ebp - 0x450]
mov edx, dword [ecx + 0x14]
push edx
call dword [sym.imp.MSVCRT.dll_fseek]
add esp, 0xc
mov eax, dword [ebp - 0x450]
mov ecx, dword [ebp - 0x414]
mov dword [eax + 0x18], ecx
mov word [ebp - 0x428], 0
mov byte [ebp - 0x410], 0
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x40f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov byte [ebp - 0x41c], 0
mov dword [ebp - 0x418], 0
mov byte [ebp - 0x10], 0
mov edx, 1
test edx, edx
je 0x42c45c
mov eax, dword [ebp - 0x450]
mov ecx, dword [eax + 0x14]
push ecx
push 1
push 2
lea edx, [ebp - 0x428]
push edx
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x10
cmp eax, 1
je 0x42bf67
jmp 0x42c45c
mov eax, dword [ebp - 0x450]
mov ecx, dword [eax + 0x18]
add ecx, 2
mov edx, dword [ebp - 0x450]
mov dword [edx + 0x18], ecx
mov eax, dword [ebp + 0x10]
and eax, 0xffff
mov ecx, dword [ebp - 0x428]
and ecx, 0xffff
cmp eax, ecx
je 0x42c05c
push 1
mov edx, dword [ebp - 0x428]
and edx, 0xffff
push edx
mov eax, dword [ebp - 0x450]
mov ecx, dword [eax + 0x14]
push ecx
call dword [sym.imp.MSVCRT.dll_fseek]
add esp, 0xc
mov edx, dword [ebp - 0x428]
and edx, 0xffff
mov eax, dword [ebp - 0x450]
mov ecx, dword [eax + 0x18]
add ecx, edx
mov edx, dword [ebp - 0x450]
mov dword [edx + 0x18], ecx
mov eax, dword [ebp - 0x450]
mov ecx, dword [eax + 0x14]
push ecx
push 1
push 2
lea edx, [ebp - 0x428]
push edx
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x10
cmp eax, 1
je 0x42c002
jmp 0x42c45c
mov eax, dword [ebp - 0x450]
mov ecx, dword [eax + 0x18]
add ecx, 2
mov edx, dword [ebp - 0x450]
mov dword [edx + 0x18], ecx
push 1
mov eax, dword [ebp - 0x428]
and eax, 0xffff
push eax
mov ecx, dword [ebp - 0x450]
mov edx, dword [ecx + 0x14]
push edx
call dword [sym.imp.MSVCRT.dll_fseek]
add esp, 0xc
mov eax, dword [ebp - 0x428]
and eax, 0xffff
mov ecx, dword [ebp - 0x450]
mov edx, dword [ecx + 0x18]
add edx, eax
mov eax, dword [ebp - 0x450]
mov dword [eax + 0x18], edx
jmp 0x42c444
mov ecx, dword [ebp - 0x450]
mov edx, dword [ecx + 0x14]
push edx
mov eax, dword [ebp + 0x10]
and eax, 0xffff
push eax
push 1
lea ecx, [ebp - 0x410]
push ecx
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x10
mov edx, dword [ebp + 0x10]
and edx, 0xffff
cmp eax, edx
je 0x42c093
jmp 0x42c45c
mov eax, dword [ebp + 0x10]
and eax, 0xffff
mov ecx, dword [ebp - 0x450]
mov edx, dword [ecx + 0x18]
add edx, eax
mov eax, dword [ebp - 0x450]
mov dword [eax + 0x18], edx
mov ecx, dword [ebp + 0x10]
and ecx, 0xffff
push ecx
lea edx, [ebp - 0x410]
push edx
mov eax, dword [ebp + 0xc]
push eax
call sub.MSVCRT.dll_memcmp
add esp, 0xc
test eax, eax
jne 0x42c3c8
mov word [ebp - 0x42c], 0
mov word [ebp - 0x434], 0
mov cx, word [ebp - 0x434]
mov word [ebp - 0x438], cx
mov edx, dword [ebp - 0x450]
mov eax, dword [edx + 0x14]
push eax
push 1
push 2
lea ecx, [ebp - 0x42c]
push ecx
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x10
cmp eax, 1
je 0x42c11c
jmp 0x42c45c
mov edx, dword [ebp - 0x450]
mov eax, dword [edx + 0x18]
add eax, 2
mov ecx, dword [ebp - 0x450]
mov dword [ecx + 0x18], eax
mov edx, dword [ebp - 0x450]
mov eax, dword [edx + 0x14]
push eax
push 1
push 2
lea ecx, [ebp - 0x434]
push ecx
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x10
cmp eax, 1
je 0x42c159
jmp 0x42c45c
mov edx, dword [ebp - 0x450]
mov eax, dword [edx + 0x18]
add eax, 2
mov ecx, dword [ebp - 0x450]
mov dword [ecx + 0x18], eax
mov edx, dword [ebp - 0x434]
and edx, 0xffff
add edx, 2
mov word [ebp - 0x438], dx
push 0
lea ecx, [ebp - 0x430]
call fcn.0041cb87
mov dword [ebp - 4], 0
push 0x400
push 0
lea eax, [ebp - 0x410]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
mov ecx, dword [ebp - 0x450]
mov edx, dword [ecx + 0x14]
push edx
mov eax, dword [ebp - 0x434]
and eax, 0xffff
push eax
push 1
lea ecx, [ebp - 0x410]
push ecx
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x10
mov edx, dword [ebp - 0x434]
and edx, 0xffff
cmp eax, edx
je 0x42c1fd
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x430]
call fcn.0041ceba
jmp 0x42c45c
mov eax, dword [ebp - 0x434]
and eax, 0xffff
mov ecx, dword [ebp - 0x450]
mov edx, dword [ecx + 0x18]
add edx, eax
mov eax, dword [ebp - 0x450]
mov dword [eax + 0x18], edx
lea ecx, [ebp - 0x430]
push ecx
sub esp, 0x10
mov ecx, esp
mov dword [ebp - 0x43c], esp
lea edx, [ebp - 0x440]
push edx
lea eax, [ebp - 0x410]
push eax
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const___class_std::allocator_char__const__]
mov dword [ebp - 0x458], eax
mov ecx, dword [ebp - 0x450]
call fcn.0042c47f
lea ecx, [ebp - 0x430]
push ecx
mov ecx, dword [ebp + 0x14]
call fcn.004150d0
mov edx, dword [ebp - 0x438]
and edx, 0xffff
mov eax, dword [ebp - 0x42c]
and eax, 0xffff
cmp edx, eax
jge 0x42c3a4
mov ecx, dword [ebp - 0x450]
mov edx, dword [ecx + 0x14]
push edx
push 1
push 2
lea eax, [ebp - 0x434]
push eax
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x10
cmp eax, 1
je 0x42c2a9
jmp 0x42c3a4
mov ecx, dword [ebp - 0x450]
mov edx, dword [ecx + 0x18]
add edx, 2
mov eax, dword [ebp - 0x450]
mov dword [eax + 0x18], edx
push 0x400
push 0
lea ecx, [ebp - 0x410]
push ecx
call sub.MSVCRT.dll_memset
add esp, 0xc
mov edx, dword [ebp - 0x450]
mov eax, dword [edx + 0x14]
push eax
mov ecx, dword [ebp - 0x434]
and ecx, 0xffff
push ecx
push 1
lea edx, [ebp - 0x410]
push edx
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x10
mov ecx, dword [ebp - 0x434]
and ecx, 0xffff
cmp eax, ecx
je 0x42c312
jmp 0x42c3a4
mov edx, dword [ebp - 0x434]
and edx, 0xffff
mov eax, dword [ebp - 0x450]
mov ecx, dword [eax + 0x18]
add ecx, edx
mov edx, dword [ebp - 0x450]
mov dword [edx + 0x18], ecx
lea eax, [ebp - 0x430]
push eax
sub esp, 0x10
mov ecx, esp
mov dword [ebp - 0x444], esp
lea edx, [ebp - 0x448]
push edx
lea eax, [ebp - 0x410]
push eax
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const___class_std::allocator_char__const__]
mov dword [ebp - 0x45c], eax
mov ecx, dword [ebp - 0x450]
call fcn.0042c47f
lea ecx, [ebp - 0x430]
push ecx
mov ecx, dword [ebp + 0x14]
call fcn.004150d0
mov dx, word [ebp - 0x438]
add dx, 2
mov word [ebp - 0x438], dx
mov ax, word [ebp - 0x438]
add ax, word [ebp - 0x434]
mov word [ebp - 0x438], ax
jmp 0x42c262
mov byte [ebp - 0x44c], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x430]
call fcn.0041ceba
mov al, byte [ebp - 0x44c]
jmp 0x42c45e
mov ecx, dword [ebp - 0x450]
mov edx, dword [ecx + 0x14]
push edx
push 1
push 2
lea eax, [ebp - 0x428]
push eax
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x10
cmp eax, 1
je 0x42c3ed
jmp 0x42c45c
mov ecx, dword [ebp - 0x450]
mov edx, dword [ecx + 0x18]
add edx, 2
mov eax, dword [ebp - 0x450]
mov dword [eax + 0x18], edx
push 1
mov ecx, dword [ebp - 0x428]
and ecx, 0xffff
push ecx
mov edx, dword [ebp - 0x450]
mov eax, dword [edx + 0x14]
push eax
call dword [sym.imp.MSVCRT.dll_fseek]
add esp, 0xc
mov ecx, dword [ebp - 0x428]
and ecx, 0xffff
mov edx, dword [ebp - 0x450]
mov eax, dword [edx + 0x18]
add eax, ecx
mov ecx, dword [ebp - 0x450]
mov dword [ecx + 0x18], eax
mov edx, dword [ebp - 0x450]
mov eax, dword [edx + 0x18]
cmp eax, dword [ebp - 0x420]
jb 0x42c457
jmp 0x42c45c
jmp 0x42bf32
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
mov esp, ebp
pop ebp
ret 0x10