Function at 0x407100
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44bfed
mov eax, dword fs:[0]
push eax
sub esp, 0x250
mov eax, dword [0x45f040]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov dword [ebp - 0x254], ecx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x244]
push 0x200
push 0
push eax
mov dword [ebp - 0x258], ebx
mov byte [ebp - 0x245], 1
call fcn.00427c40
add esp, 8
lea eax, [ebp - 0x40]
push ebx
push eax
call fcn.00402840
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x34]
cmp edx, 0xffffffff
je 0x407338
mov ecx, dword [ebp - 0x40]
mov eax, dword [ebp - 0x38]
lea ecx, [ecx + 0x1ff]
shr ecx, 9
test edx, edx
mov dword [ebp - 0x250], ecx
cmove eax, ecx
mov ecx, 0x640
test eax, eax
cmove eax, ecx
cmp dword [ebx + 0x14], 7
mov dword [ebp - 0x24c], eax
mov eax, ebx
jbe 0x4071ad
mov eax, dword [ebx]
push 0x4568b4
push eax
call fcn.0042b566
mov edi, eax
add esp, 8
test edi, edi
je 0x407338
push dword [ebp - 0x24c]
push dword [ebp - 0x250]
push 0x4576f8
call fcn.0040b0e0
add esp, 0xc
lea ecx, [ebp - 0x40]
call fcn.00406de0
xor ebx, ebx
cmp dword [ebp - 0x24c], ebx
jbe 0x407327
nop dword [eax]
nop dword [eax + eax]
push 0x200
lea eax, [ebp - 0x244]
push 0
push eax
call fcn.00427c40
add esp, 0xc
push edi
call fcn.0043233d
add esp, 4
test eax, eax
jne 0x40723a
push edi
push 0x200
lea eax, [ebp - 0x244]
push 1
push eax
call fcn.0042bbce
add esp, 0x10
push edi
call fcn.00432369
add esp, 4
test eax, eax
jne 0x407303
lea ecx, [ebp - 0x244]
call fcn.00403ff0
push dword [ebp - 0x254]
lea eax, [ebp - 0x244]
push 0x200
push 1
push eax
call fcn.0042bfce
add esp, 0x10
cmp eax, 0x200
jne 0x4072e1
mov ax, word [esi + 0x12]
inc ax
mov word [esi + 0x12], ax
cmp ax, word [esi + 0xc]
jne 0x4072c3
xor eax, eax
mov word [esi + 0x12], ax
mov ax, word [esi + 0x10]
inc ax
mov word [esi + 0x10], ax
cmp ax, word [esi + 0xa]
jne 0x4072c3
xor eax, eax
mov word [esi + 0x10], ax
mov ax, word [esi + 0xe]
inc ax
movzx ecx, ax
mov word [esi + 0xe], ax
cmp cx, word [esi + 8]
jbe 0x4072c3
mov word [esi + 8], cx
mov byte [ebp - 0x245], 0
inc ebx
cmp ebx, dword [ebp - 0x24c]
jb 0x407200
push edi
call fcn.0042b6a2
mov bl, byte [ebp - 0x245]
add esp, 4
jmp 0x40733a
mov dword [esi + 0x14], 0xffffffff
mov eax, 0x45ff2c
cmp dword [0x45ff40], 7
cmova eax, dword [0x45ff2c]
push eax
push 0x4577a4
jmp 0x407317
mov eax, dword [ebp - 0x258]
cmp dword [eax + 0x14], 7
jbe 0x407311
mov eax, dword [eax]
push eax
push 0x457760
call fcn.0040b0e0
add esp, 8
xor al, al
mov byte [ebp - 0x245], al
push edi
call fcn.0042b6a2
mov bl, byte [ebp - 0x245]
add esp, 4
jmp 0x40733a
xor bl, bl
cmp dword [ebp - 0x18], 7
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x1c], 0
cmova eax, dword [ebp - 0x2c]
xor ecx, ecx
mov word [eax], cx
mov ecx, dword [ebp - 0x18]
cmp ecx, 7
jbe 0x407387
mov edx, dword [ebp - 0x2c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40737d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4073a5
push ecx
push edx
call fcn.004265b2
add esp, 8
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004265a4
mov esp, ebp
pop ebp
ret
call fcn.0042b45f
int3