Function at 0x451660
Capabilities:
Access peb ldr_data
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x5464f8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
mov eax, dword [esp + 0x1c]
push ebx
push ebp
push esi
push edi
mov esi, ecx
push eax
mov dword [esp + 0x14], esi
call fcn.0044f640
lea eax, [esi + 0x214]
xor ecx, ecx
mov edx, dword [esp + 0x30]
lea edi, [esi + 0x220]
mov dword [eax], ecx
xor ebx, ebx
mov dword [esp + 0x24], ebx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov ecx, 0x13
xor eax, eax
mov dword [edi + 0xc], ebx
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x34]
mov dword [esi + 0x26c], ebx
mov dword [esi + 0x270], ebx
mov dword [esi + 0x274], edx
mov dword [esi + 0x278], ebx
mov dword [esi + 0x27c], ebx
mov dword [esi + 0x280], ebx
mov dword [esi + 0x284], ebx
mov dword [esi], 0x54d7ec
mov cx, word [eax]
cmp cx, word [eax + 4]
jg 0x451738
mov dx, word [eax + 2]
cmp dx, word [eax + 6]
jg 0x451738
mov ecx, dword [eax]
mov dword [esi + 0x10], ecx
mov edx, dword [eax + 4]
mov dword [esi + 0x14], edx
movsx eax, word [esi + 0x16]
movsx ecx, word [esi + 0x12]
movsx edx, word [esi + 0x14]
sub eax, ecx
lea ecx, [esp + 0x14]
inc eax
push eax
movsx eax, word [esi + 0x10]
sub edx, eax
inc edx
push edx
push ebx
push ebx
call fcn.004c9320
mov ecx, dword [eax]
mov dword [esi + 0x34], ecx
mov edx, dword [eax + 4]
mov dword [esi + 0x38], edx
mov ecx, dword [esi + 0x1dc]
mov dword [esi + 0x208], 0x10
cmp ecx, ebx
je 0x451790
xor eax, eax
mov dword [esi + 0x208], 1
mov ax, word [esi + 0x1d0]
cmp eax, ebx
jle 0x451790
mov edx, ecx
mov edi, eax
mov ecx, dword [edx]
cmp ecx, ebx
je 0x45178a
movsx eax, word [ecx + 0xa]
movsx ecx, word [ecx + 6]
sub eax, ecx
mov ecx, dword [esi + 0x208]
inc eax
cmp ecx, eax
jle 0x451784
mov eax, ecx
mov dword [esi + 0x208], eax
add edx, 4
dec edi
jne 0x451767
mov edx, dword [0x67a8cc]
push 1
push 0xfffffffffffffff8
push edx
call dword [sym.imp.MSVCRT.dll_fseek]
xor eax, eax
mov ax, word [esi + 0x1d0]
shl eax, 2
push eax
call fcn.00478e60
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
mov dword [esi + 0x210], eax
mov ecx, dword [0x67a8cc]
xor edx, edx
mov dx, word [esi + 0x1d0]
push ecx
push edx
push 4
push eax
call ebx
mov eax, dword [esi + 0x210]
push 0x24
mov ecx, dword [eax]
mov dword [esi + 0xbc], ecx
call fcn.004784b0
mov edi, dword [sym.imp.MSVCRT.dll_ftell]
mov ebp, eax
add esp, 0x24
test ebp, ebp
je 0x451811
mov edx, dword [0x67a8cc]
push 0
push edx
call edi
add esp, 4
mov ecx, ebp
push eax
call fcn.00495d60
jmp 0x451813
xor eax, eax
mov dword [esi + 0xcc], eax
mov eax, dword [0x67a8cc]
push eax
call edi
add esp, 4
mov ecx, esi
push eax
call fcn.0043e9b0
mov ecx, dword [0x67a8cc]
push ecx
call edi
mov edx, dword [0x67a8cc]
mov ebp, eax
push edx
call edi
add esp, 8
mov ecx, esi
push eax
call fcn.0043ee20
mov eax, dword [0x67a8cc]
add ebp, 0x14
push 0
push ebp
push eax
call dword [sym.imp.MSVCRT.dll_fseek]
mov ecx, dword [0x67a8cc]
lea eax, [esi + 0x214]
push ecx
push 1
push 0xc
push eax
call ebx
mov eax, dword [0x67a7f0]
add esp, 0x1c
cmp eax, 0x1a
jl 0x45194b
mov edx, dword [0x67a8cc]
lea eax, [esi + 0x20c]
push edx
push 1
push 4
push eax
call ebx
mov ecx, dword [0x67a8cc]
add esp, 0x10
lea ebp, [esi + 0x220]
push 0x4c
push ebp
push ecx
call edi
add esp, 4
push eax
call fcn.0047a710
mov edx, dword [0x67a954]
mov ecx, dword [ebp + 4]
add esp, 0xc
xor eax, eax
test edx, ecx
je 0x4518e5
push 0x24
call fcn.004784b0
add esp, 4
test eax, eax
je 0x4518e3
add ebp, 0x38
push 1
push ebp
mov ecx, eax
call fcn.00495db0
jmp 0x4518e5
xor eax, eax
mov dword [esi + 0x124], eax
mov al, byte [esi + 0x233]
cmp al, 2
jne 0x4518fc
mov byte [esi + 0x233], 3
mov eax, dword [0x67a8cc]
lea ecx, [esp + 0x2c]
push eax
push 1
push 4
push ecx
call ebx
lea eax, [esp + 0x3c]
mov edx, str.FLAG
add esp, 0x10
mov ecx, dword [eax]
mov eax, dword [edx]
cmp ecx, eax
jne 0x45194b
mov edx, dword [0x67a8cc]
lea eax, [esi + 0x278]
push edx
push 1
push 4
push eax
call ebx
mov eax, dword [0x67a8cc]
push eax
push 1
lea eax, [esi + 0x27c]
push 4
push eax
call ebx
add esp, 0x20
mov ecx, dword [0x67a8e4]
mov eax, dword [esi + 0x278]
test ecx, eax
jne 0x451967
mov edx, dword [esi + 0x218]
mov dword [esi + 0x27c], edx
mov ecx, dword [esi + 0x220]
mov eax, str.mprm
lea edx, [esi + 0x220]
cmp ecx, dword [eax]
je 0x451987
mov ecx, 0x13
xor eax, eax
mov edi, edx
rep stosd dword es:[edi], eax
xor eax, eax
xor ebx, ebx
mov ax, word [esi + 0x1d0]
mov dword [esi + 0x1f0], ebx
mov dword [esi + 0x1fc], 0xffffffff
mov dword [esi + 0x1ec], ebx
mov dword [esi + 0x1f4], eax
movsx ecx, word [esi + 0x14]
movsx eax, word [esi + 0x10]
sub ecx, eax
inc ecx
mov dword [esi + 0x1f8], ecx
mov eax, dword [edx]
mov ecx, str.mprm
cmp eax, dword [ecx]
jne 0x451b64
mov eax, dword [esi + 0x224]
and eax, 0xf
cmp eax, 1
jl 0x451b64
mov edi, dword [edx]
mov ebp, dword [ecx]
cmp edi, ebp
jne 0x451a4f
cmp eax, 1
jne 0x451a4f
lea edi, [edx + 0x14]
xor eax, eax
mov dl, byte [edi + 5]
cmp dl, 0xfe
jne 0x451a1b
mov ecx, dword [edi + 8]
cmp ecx, 0x2710
jae 0x451b23
movsx ebp, word [edi + 0xc]
add ebp, ecx
cmp ebp, 0x2710
ja 0x451b23
cmp dl, 0xff
jne 0x451a41
mov ecx, dword [edi + 8]
cmp ecx, 0x2810
jae 0x451b23
movsx ebp, word [edi + 0xc]
add ebp, ecx
cmp ebp, 0x2810
ja 0x451b23
cmp dl, 0xf9
jne 0x451b01
jmp 0x451ae8
mov edi, dword [edx]
mov ecx, str.mprm
cmp edi, dword [ecx]
jne 0x451a6d
cmp eax, 2
jne 0x451a6d
mov word [esi + 0x228], 0x10
jmp 0x451b29
mov edi, dword [edx]
mov ecx, str.mprm
cmp edi, dword [ecx]
jne 0x451b29
cmp eax, 3
jne 0x451b29
mov word [esi + 0x228], 8
mov eax, dword [0x67a8fc]
test dword [esi + 0x224], eax
je 0x451b29
lea edi, [edx + 0x14]
xor eax, eax
mov dl, byte [edi + 5]
cmp dl, 0xfe
jne 0x451ac5
mov ecx, dword [edi + 8]
cmp ecx, 0x2710
jae 0x451b23
movsx ebp, word [edi + 0xc]
add ebp, ecx
cmp ebp, 0x2710
ja 0x451b23
cmp dl, 0xff
jne 0x451ae3
mov ecx, dword [edi + 8]
cmp ecx, 0x2810
jae 0x451b23
movsx ebp, word [edi + 0xc]
add ebp, ecx
cmp ebp, 0x2810
ja 0x451b23
cmp dl, 0xf9
jne 0x451b01
mov ecx, dword [edi + 8]
cmp ecx, 0x27100
jae 0x451b23
movsx edx, word [edi + 0xc]
add edx, ecx
cmp edx, 0x27100
ja 0x451b23
cmp word [edi + 0xc], bx
jle 0x451b23
push 0x24
call fcn.004784b0
add esp, 4
cmp eax, ebx
je 0x451b21
push 1
push edi
mov ecx, eax
call fcn.00495db0
jmp 0x451b23
xor eax, eax
mov dword [esi + 0x12c], eax
push 3
lea eax, [esp + 0x30]
push 0x30
push eax
lea ecx, [esi + 0x22c]
mov dword [esi + 0x1f4], ebx
call fcn.004cdf00
xor ecx, ecx
mov cx, word [eax + 2]
mov dword [esi + 0x208], ecx
mov edx, dword [0x67a934]
test dword [esi + 0x224], edx
je 0x451b64
mov ecx, esi
call fcn.00441350
mov ecx, dword [esp + 0x1c]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret 0xc