Function at 0x455650
Capabilities:
Read file on windows
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x530a78
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x74
mov eax, dword [esp + 0x84]
push ebx
push ebp
push esi
push edi
mov ebp, ecx
push eax
mov dword [esp + 0x14], ebp
call fcn.00453f30
mov ecx, dword [ebp + 0x1e4]
mov edx, dword [ebp + 0x208]
mov eax, dword [ebp + 0x210]
and ecx, 8
mov dword [esp + 0x70], ecx
mov edi, dword [sym.imp.MSVCRT.dll_fread]
xor ecx, ecx
mov dword [ebp + 0x278], 0xffffffff
mov dword [ebp], 0x537248
mov dword [esp + 0x74], edx
mov edx, dword [0x659a18]
mov dword [esp + 0x38], ecx
mov ebx, 1
mov dword [esp + 0x78], eax
mov dword [esp + 0x3c], ecx
push edx
push ebx
lea eax, [esp + 0x3c]
xor esi, esi
mov dword [esp + 0x48], ecx
push 0x14
push eax
mov dword [esp + 0x9c], esi
mov dword [esp + 0x8c], ebx
mov dword [esp + 0x90], ebx
mov dword [esp + 0x44], esi
mov dword [esp + 0x54], ecx
call edi
mov edx, dword [0x659a18]
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x54]
push edx
mov dword [esp + 0x54], ecx
mov dword [esp + 0x58], eax
call dword [sym.imp.MSVCRT.dll_ftell]
add esp, 0x14
mov ecx, ebp
push eax
call fcn.0043b300
xor eax, eax
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov al, byte [ebp + 0x1e4]
test al, 0x40
je 0x455750
mov ecx, dword [0x659a18]
lea edx, [esp + 0x28]
push ecx
push ebx
push 0xc
push edx
call edi
add esp, 0x10
jmp 0x455762
mov eax, dword [0x659a18]
push ebx
push 0xc
push eax
call dword [sym.imp.MSVCRT.dll_fseek]
add esp, 0xc
mov eax, dword [0x659958]
mov dword [esp + 0x5c], ebx
cmp eax, 0x1c
mov dword [esp + 0x60], ebx
mov dword [esp + 0x64], ebx
mov dword [esp + 0x68], ebx
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
jl 0x45588c
mov edx, dword [0x659a18]
xor ecx, ecx
mov dword [esp + 0x4c], ecx
push edx
mov dword [esp + 0x54], ecx
push ebx
lea eax, [esp + 0x50]
mov dword [esp + 0x5c], ecx
push 0x14
push eax
mov dword [esp + 0x58], esi
mov dword [esp + 0x68], ecx
call edi
mov edx, dword [0x659a18]
xor ecx, ecx
mov dword [esp + 0x25], ecx
push edx
push ebx
lea eax, [esp + 0x2c]
mov word [esp + 0x31], cx
push 4
push eax
mov byte [esp + 0x34], 0
mov byte [esp + 0x3b], cl
call edi
mov ecx, dword [0x659a18]
add ebp, 0x274
push ecx
push ebx
push 4
push ebp
call edi
add esp, 0x30
mov esi, str.FLAG
lea eax, [esp + 0x14]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x45581f
test cl, cl
je 0x45581b
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x45581f
add eax, 2
add esi, 2
test cl, cl
jne 0x4557fb
xor eax, eax
jmp 0x455824
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x45582f
mov dword [ebp], 0
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x50]
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x58]
mov dword [esp + 0x60], ecx
mov ecx, dword [0x659a40]
mov dword [esp + 0x64], edx
mov edx, dword [ebp]
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x54]
test edx, ecx
mov dword [esp + 0x6c], eax
je 0x45587a
mov edx, dword [0x659a18]
lea eax, [esp + 0x1c]
push edx
push ebx
push 0xc
push eax
call edi
add esp, 0x10
jmp 0x455886
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov ebp, dword [esp + 0x10]
xor esi, esi
lea eax, [ebp + 0x268]
xor ecx, ecx
mov edx, eax
mov ebx, eax
xor edi, edi
mov dword [edx], ecx
mov dword [edx + 4], ecx
mov dword [edx + 8], ecx
cmp dword [esp + edi + 0x28], esi
jle 0x455911
mov eax, dword [esp + edi + 0x1c]
dec eax
je 0x4558f0
dec eax
je 0x4558d1
dec eax
jne 0x455911
push 0x1c
call fcn.00470250
add esp, 4
cmp eax, esi
je 0x45590d
mov ecx, dword [esp + edi + 0x28]
push ecx
mov ecx, eax
call fcn.004ba9e0
jmp 0x45590f
push 0x298
call fcn.00470250
add esp, 4
cmp eax, esi
je 0x45590d
mov edx, dword [esp + edi + 0x28]
mov ecx, eax
push edx
call fcn.004baf10
jmp 0x45590f
push 0x24
call fcn.00470250
add esp, 4
cmp eax, esi
je 0x45590d
mov ecx, dword [esp + edi + 0x28]
push esi
push ecx
mov ecx, eax
call fcn.004bac90
jmp 0x45590f
xor eax, eax
mov dword [ebx], eax
add edi, 4
add ebx, 4
cmp edi, 0xc
jl 0x4558a2
mov dword [ebp + 0x214], 5
lea edi, [ebp + 0x218]
mov eax, dword [esp + esi*4 + 0x70]
test eax, eax
je 0x4559a6
mov eax, dword [esp + esi*4 + 0x34]
test eax, eax
jle 0x4559a6
mov eax, dword [esp + esi*4 + 0x5c]
dec eax
je 0x455984
dec eax
je 0x455965
dec eax
jne 0x4559a6
push 0x1c
call fcn.00470250
add esp, 4
test eax, eax
je 0x4559a2
mov edx, dword [esp + esi*4 + 0x34]
mov ecx, eax
push edx
call fcn.004ba9e0
jmp 0x4559a4
push 0x298
call fcn.00470250
add esp, 4
test eax, eax
je 0x4559a2
mov ecx, dword [esp + esi*4 + 0x34]
push ecx
mov ecx, eax
call fcn.004baf10
jmp 0x4559a4
push 0x24
call fcn.00470250
add esp, 4
test eax, eax
je 0x4559a2
mov edx, dword [esp + esi*4 + 0x34]
push 0
push edx
mov ecx, eax
call fcn.004bac90
jmp 0x4559a4
xor eax, eax
mov dword [edi], eax
mov eax, dword [ebp + 0x214]
inc esi
add edi, 4
cmp esi, eax
jl 0x45592c
call fcn.00412c50
mov ecx, dword [esp + 0x84]
mov dword [ebp + 0x254], eax
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x80
ret 4