Function at 0x403210
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
mov eax, dword [0x431c94]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov dword [ebp - 0x130], 0
mov dword [ebp - 0x13c], 0
mov dword [ebp - 0x114], 0
mov eax, dword [ebp + 0xc]
push eax
call fcn.00418d4e
add esp, 4
mov dword [ebp - 0x148], eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.00418d4e
add esp, 4
mov dword [ebp - 0x128], eax
mov edx, 1
mov ecx, dword [ebp - 0x148]
shl edx, cl
mov dword [ebp - 0x138], edx
mov eax, dword [ebp - 0x138]
add eax, 1
mov dword [ebp - 0x140], eax
mov ecx, dword [ebp - 0x140]
add ecx, 1
mov dword [ebp - 0x11c], ecx
mov edx, dword [ebp - 0x148]
add edx, 1
mov dword [ebp - 0x120], edx
cmp dword [ebp - 0x128], 0
je 0x40335e
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x128]
push ecx
push 1
lea edx, [ebp - 0x104]
push edx
call fcn.004193d1
add esp, 0x10
cmp eax, dword [ebp - 0x128]
je 0x4032df
or eax, 0xffffffff
jmp 0x403805
mov eax, dword [ebp - 0x13c]
add eax, dword [ebp - 0x128]
push eax
mov ecx, dword [ebp - 0x130]
push ecx
call fcn.00419c1f
add esp, 8
mov dword [ebp - 0x130], eax
cmp dword [ebp - 0x130], 0
jne 0x403312
or eax, 0xffffffff
jmp 0x403805
mov edx, dword [ebp - 0x128]
push edx
lea eax, [ebp - 0x104]
push eax
mov ecx, dword [ebp - 0x130]
add ecx, dword [ebp - 0x13c]
push ecx
call fcn.0041b450
add esp, 0xc
mov edx, dword [ebp - 0x13c]
add edx, dword [ebp - 0x128]
mov dword [ebp - 0x13c], edx
mov eax, dword [ebp + 0xc]
push eax
call fcn.00418d4e
add esp, 4
mov dword [ebp - 0x128], eax
jmp 0x4032a6
push 0x14000
call fcn.0041916b
add esp, 4
mov dword [ebp - 0x10c], eax
mov dword [ebp - 0x108], 0
jmp 0x40338c
mov ecx, dword [ebp - 0x108]
add ecx, 1
mov dword [ebp - 0x108], ecx
mov edx, dword [ebp - 0x108]
cmp edx, dword [ebp - 0x11c]
jge 0x4033dd
imul eax, dword [ebp - 0x108], 0x14
mov ecx, dword [ebp - 0x10c]
mov dword [ecx + eax + 4], 0
imul edx, dword [ebp - 0x108], 0x14
mov eax, dword [ebp - 0x10c]
mov dword [eax + edx + 0xc], 1
imul ecx, dword [ebp - 0x108], 0x14
mov edx, dword [ebp - 0x10c]
mov eax, dword [ebp - 0x108]
mov dword [edx + ecx + 8], eax
jmp 0x40337d
mov ecx, dword [ebp - 0x13c]
push ecx
mov edx, dword [ebp - 0x130]
push edx
call fcn.004041c0
add esp, 8
mov dword [ebp - 0x144], eax
mov eax, dword [ebp - 0x138]
mov dword [ebp - 0x110], eax
mov ecx, dword [ebp - 0x110]
cmp ecx, dword [ebp - 0x138]
jne 0x403431
mov edx, dword [ebp - 0x120]
push edx
mov eax, dword [ebp - 0x144]
push eax
call fcn.004042a0
add esp, 8
mov dword [ebp - 0x110], eax
jmp 0x403405
mov ecx, dword [ebp - 0x110]
mov dword [ebp - 0x134], ecx
mov edx, 1
imul eax, edx, 0
mov ecx, dword [ebp + 8]
mov dl, byte [ebp - 0x134]
mov byte [ecx + eax], dl
mov dword [ebp - 0x114], 1
mov eax, 1
test eax, eax
je 0x4037d1
mov ecx, dword [ebp - 0x120]
push ecx
mov edx, dword [ebp - 0x144]
push edx
call fcn.004042a0
add esp, 8
mov dword [ebp - 0x12c], eax
mov eax, dword [ebp - 0x12c]
cmp eax, dword [ebp - 0x138]
jne 0x403540
mov ecx, dword [ebp - 0x140]
add ecx, 1
mov dword [ebp - 0x11c], ecx
mov edx, dword [ebp - 0x148]
add edx, 1
mov dword [ebp - 0x120], edx
mov eax, dword [ebp - 0x120]
push eax
mov ecx, dword [ebp - 0x144]
push ecx
call fcn.004042a0
add esp, 8
mov dword [ebp - 0x110], eax
mov edx, dword [ebp - 0x110]
cmp edx, dword [ebp - 0x138]
jne 0x4034fc
mov eax, dword [ebp - 0x120]
push eax
mov ecx, dword [ebp - 0x144]
push ecx
call fcn.004042a0
add esp, 8
mov dword [ebp - 0x110], eax
jmp 0x4034d0
mov edx, dword [ebp - 0x110]
cmp edx, dword [ebp - 0x140]
jne 0x40350f
jmp 0x4037d1
mov eax, dword [ebp - 0x110]
mov dword [ebp - 0x134], eax
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 0x114]
mov dl, byte [ebp - 0x110]
mov byte [ecx], dl
mov eax, dword [ebp - 0x114]
add eax, 1
mov dword [ebp - 0x114], eax
jmp 0x40345b
mov ecx, dword [ebp - 0x12c]
cmp ecx, dword [ebp - 0x140]
jne 0x403553
jmp 0x4037d1
mov edx, dword [ebp - 0x12c]
cmp edx, dword [ebp - 0x11c]
jl 0x403643
imul eax, dword [ebp - 0x110], 0x14
mov ecx, dword [ebp - 0x10c]
mov edx, dword [ecx + eax + 0xc]
mov dword [ebp - 0x118], edx
mov eax, dword [ebp - 0x118]
add eax, dword [ebp - 0x114]
mov ecx, dword [ebp + 0x10]
imul ecx, dword [ebp + 0x14]
cmp eax, ecx
jl 0x403598
jmp 0x4037d1
mov edx, dword [ebp - 0x110]
mov dword [ebp - 0x124], edx
mov dword [ebp - 0x108], 0
jmp 0x4035bf
mov eax, dword [ebp - 0x108]
add eax, 1
mov dword [ebp - 0x108], eax
mov ecx, dword [ebp - 0x108]
cmp ecx, dword [ebp - 0x118]
jge 0x403610
imul edx, dword [ebp - 0x124], 0x14
mov eax, dword [ebp - 0x114]
add eax, dword [ebp - 0x118]
sub eax, dword [ebp - 0x108]
mov ecx, dword [ebp + 8]
mov esi, dword [ebp - 0x10c]
mov dl, byte [esi + edx + 8]
mov byte [ecx + eax - 1], dl
imul eax, dword [ebp - 0x124], 0x14
mov ecx, dword [ebp - 0x10c]
mov edx, dword [ecx + eax + 4]
mov dword [ebp - 0x124], edx
jmp 0x4035b0
mov eax, dword [ebp - 0x114]
add eax, dword [ebp - 0x118]
mov ecx, dword [ebp + 8]
mov dl, byte [ebp - 0x134]
mov byte [ecx + eax], dl
mov eax, dword [ebp - 0x118]
mov ecx, dword [ebp - 0x114]
lea edx, [ecx + eax + 1]
mov dword [ebp - 0x114], edx
jmp 0x403717
imul eax, dword [ebp - 0x12c], 0x14
mov ecx, dword [ebp - 0x10c]
mov edx, dword [ecx + eax + 0xc]
mov dword [ebp - 0x118], edx
mov eax, dword [ebp - 0x114]
add eax, dword [ebp - 0x118]
mov ecx, dword [ebp + 0x10]
imul ecx, dword [ebp + 0x14]
cmp eax, ecx
jle 0x403676
jmp 0x4037d1
mov edx, dword [ebp - 0x12c]
mov dword [ebp - 0x124], edx
mov dword [ebp - 0x108], 0
jmp 0x40369d
mov eax, dword [ebp - 0x108]
add eax, 1
mov dword [ebp - 0x108], eax
mov ecx, dword [ebp - 0x108]
cmp ecx, dword [ebp - 0x118]
jge 0x403705
imul edx, dword [ebp - 0x124], 0x14
mov eax, dword [ebp - 0x10c]
mov ecx, dword [eax + edx + 8]
mov dword [ebp - 0x134], ecx
imul edx, dword [ebp - 0x124], 0x14
mov eax, dword [ebp - 0x114]
add eax, dword [ebp - 0x118]
sub eax, dword [ebp - 0x108]
mov ecx, dword [ebp + 8]
mov esi, dword [ebp - 0x10c]
mov dl, byte [esi + edx + 8]
mov byte [ecx + eax - 1], dl
imul eax, dword [ebp - 0x124], 0x14
mov ecx, dword [ebp - 0x10c]
mov edx, dword [ecx + eax + 4]
mov dword [ebp - 0x124], edx
jmp 0x40368e
mov eax, dword [ebp - 0x114]
add eax, dword [ebp - 0x118]
mov dword [ebp - 0x114], eax
cmp dword [ebp - 0x11c], 0x1000
jge 0x4037c0
imul ecx, dword [ebp - 0x11c], 0x14
mov edx, dword [ebp - 0x10c]
mov eax, dword [ebp - 0x110]
mov dword [edx + ecx + 4], eax
imul ecx, dword [ebp - 0x110], 0x14
mov edx, dword [ebp - 0x10c]
mov eax, dword [edx + ecx + 0xc]
add eax, 1
imul ecx, dword [ebp - 0x11c], 0x14
mov edx, dword [ebp - 0x10c]
mov dword [edx + ecx + 0xc], eax
imul eax, dword [ebp - 0x11c], 0x14
mov ecx, dword [ebp - 0x10c]
mov edx, dword [ebp - 0x134]
mov dword [ecx + eax + 8], edx
mov eax, dword [ebp - 0x11c]
add eax, 1
mov dword [ebp - 0x11c], eax
mov edx, 1
mov ecx, dword [ebp - 0x120]
shl edx, cl
cmp dword [ebp - 0x11c], edx
jne 0x4037c0
mov eax, dword [ebp - 0x120]
add eax, 1
mov dword [ebp - 0x120], eax
cmp dword [ebp - 0x120], 0xd
jne 0x4037c0
mov dword [ebp - 0x120], 0xc
mov ecx, dword [ebp - 0x12c]
mov dword [ebp - 0x110], ecx
jmp 0x40345b
mov edx, dword [ebp + 0x10]
imul edx, dword [ebp + 0x14]
cmp dword [ebp - 0x114], edx
je 0x4037e5
or eax, 0xffffffff
jmp 0x403805
mov eax, dword [ebp - 0x10c]
push eax
call fcn.00419133
add esp, 4
mov ecx, dword [ebp - 0x130]
push ecx
call fcn.00419133
add esp, 4
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004191fd
mov esp, ebp
pop ebp
ret