Function at 0x403010
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f320d
mov eax, dword fs:[0]
push eax
mov eax, 0x10cc
call fcn.004b3f40
mov eax, dword [0x52de04]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
imul ecx, dword [0x668604], 0x4e0
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x10c8], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x10cc], eax
mov dword [ebp - 0x10d0], esi
lea eax, [ecx + 0x530138]
push eax
lea eax, [ecx + 0x530130]
push eax
push 0
push 0
push esi
call fcn.00404c90
imul edx, dword [0x668604], 0x4e0
add esp, 0x14
test eax, eax
mov dword [ebp - 0x10c4], eax
mov dword [ebp - 0x10bc], 0
setne cl
mov byte [edx + 0x530128], cl
mov ecx, esi
mov dword [edx + 0x53034c], 0
mov dword [edx + 0x530350], 0
sub edx, esi
nop
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx + 0x5304cb], al
test al, al
jne 0x4030c0
push 0x800
lea eax, [ebp - 0x10b8]
push 0
push eax
call fcn.004b90a0
push 0x4fda68
push esi
call fcn.0041d3a0
mov edi, eax
add esp, 0x14
test edi, edi
je 0x40314e
push edi
push 0x800
lea eax, [ebp - 0x10b8]
push 1
push eax
call fcn.004c37de
imul ecx, dword [0x668604], 0x4e0
mov eax, dword [ebp - 0x10a8]
push edi
mov dword [ecx + 0x53033c], eax
mov eax, dword [ebp - 0x1094]
mov dword [ecx + 0x530340], eax
mov eax, dword [ebp - 0x1090]
mov dword [ecx + 0x530124], eax
mov eax, dword [ebp - 0x10b0]
mov dword [ebp - 0x10bc], eax
call fcn.004c35d5
add esp, 0x14
imul eax, dword [0x668604], 0x4e0
cmp dword [ebp - 0x10c4], 0
je 0x403196
push dword [0x668600]
mov dword [eax + 0x530354], 0x411500
mov dword [eax + 0x530358], 0x411980
push esi
mov dword [eax + 0x5303c0], 0x411f00
call fcn.004121d0
add esp, 8
mov dword [ebp - 0x10bc], eax
jmp 0x4031e8
mov dword [eax + 0x530354], fcn.00418520
mov dword [eax + 0x530358], 0x403ff0
mov dword [eax + 0x5303c0], 0x418960
lea eax, [ebp - 0x10d8]
push eax
lea eax, [ebp - 0x10c4]
push eax
call fcn.00417660
imul eax, dword [0x668604], 0x4e0
mov ecx, dword [ebp - 0x10c4]
push 1
push ecx
mov dword [eax + 0x530344], ecx
call fcn.00418480
add esp, 0x10
mov esi, dword [0x668604]
mov ecx, 0x40
mov eax, dword [ebp - 0x10c8]
imul edx, esi, 0x4e0
mov dword [eax], 0
xor eax, eax
lea edi, [edx + 0x53023c]
rep stosd dword es:[edi], eax
lea edi, [edx + 0x53013c]
mov ecx, 0x40
rep stosd dword es:[edi], eax
mov ecx, edx
cmp dword [ecx + 0x5305d0], eax
je 0x403472
mov edi, dword [ebp - 0x10bc]
lea eax, [edi + 7]
cdq
and edx, 7
add eax, edx
mov edx, dword [ebp - 0x10c8]
sar eax, 3
mov dword [ecx + 0x53011c], eax
shl eax, 3
mov dword [edx], eax
cmp dword [ecx + 0x530340], 0
jne 0x4032b4
xor esi, esi
cmp dword [ecx + 0x53033c], esi
jle 0x4032e1
lea eax, [edi*2 + 0x80]
mov dword [ebp - 0x10bc], eax
push eax
call fcn.00417230
mov edi, dword [0x668604]
push dword [ebp - 0x10bc]
imul ecx, edi, 0x138
push 0
push eax
add ecx, esi
mov dword [ecx*4 + 0x53013c], eax
call fcn.004b90a0
imul eax, edi, 0x4e0
inc esi
add esp, 0x10
cmp esi, dword [eax + 0x53033c]
mov eax, dword [ebp - 0x10bc]
jl 0x403271
jmp 0x4032e7
lea esi, [edi*2 + 0x80]
push esi
call fcn.00417230
mov edi, dword [0x668604]
imul ecx, edi, 0x4e0
push esi
push 0
push eax
mov dword [ecx + 0x53013c], eax
call fcn.004b90a0
add esp, 0x10
jmp 0x4032e7
mov edi, dword [0x668604]
mov eax, dword [0x668600]
xor esi, esi
cmp dword [eax + 0x160], esi
jle 0x403359
imul eax, edi, 0x4e0
lea eax, [eax + 0x53011c]
mov eax, dword [eax]
add eax, 0x40
push eax
call fcn.00417230
mov edi, dword [0x668604]
imul ecx, edi, 0x138
add ecx, esi
mov dword [ecx*4 + 0x53023c], eax
imul ecx, edi, 0x4e0
lea ecx, [ecx + 0x53011c]
mov dword [ebp - 0x10c0], ecx
mov ecx, dword [ecx]
add ecx, 0x40
push ecx
push 0
push eax
call fcn.004b90a0
mov eax, dword [0x668600]
inc esi
add esp, 0x10
cmp esi, dword [eax + 0x160]
mov eax, dword [ebp - 0x10c0]
jl 0x403302
imul eax, edi, 0x4e0
push 0x800
push 0
mov dword [eax + 0x530348], 0
lea eax, [ebp - 0x8b8]
push eax
call fcn.004b90a0
mov edi, dword [ebp - 0x10d0]
push 0x4fda68
push edi
call fcn.0041d3a0
mov esi, eax
add esp, 0x14
test esi, esi
je 0x40346a
push esi
push 0x800
lea eax, [ebp - 0x8b8]
push 1
push eax
call fcn.004c37de
lea ecx, [ebp - 0x554]
add esp, 0x10
lea edx, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4033c0
sub ecx, edx
lea eax, [ecx + 1]
push eax
call fcn.00417230
mov edx, dword [0x668604]
add esp, 4
imul ecx, edx, 0x4e0
mov dword [ecx + 0x53034c], eax
lea ecx, [ebp - 0x294]
lea eax, [ecx + 1]
mov dword [ebp - 0x10c0], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4033f6
sub ecx, dword [ebp - 0x10c0]
imul eax, edx, 0x4e0
mov dword [ebp - 0x10bc], eax
lea eax, [ecx + 1]
push eax
call fcn.00417230
mov edx, dword [ebp - 0x10bc]
lea ecx, [ebp - 0x554]
add esp, 4
mov dword [edx + 0x530350], eax
mov edx, dword [edx + 0x53034c]
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx], al
lea edx, [edx + 1]
test al, al
jne 0x403433
mov edx, dword [ebp - 0x10bc]
lea ecx, [ebp - 0x294]
mov edx, dword [edx + 0x530350]
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx], al
lea edx, [edx + 1]
test al, al
jne 0x403453
push esi
call fcn.004c35d5
add esp, 4
mov esi, dword [0x668604]
jmp 0x403494
mov eax, dword [ebp - 0x1090]
imul eax, dword [ebp - 0x10bc]
mov edi, dword [ebp - 0x10d0]
cdq
and edx, 7
add eax, edx
sar eax, 3
mov dword [ecx + 0x53011c], eax
imul eax, esi, 0x4e0
lea ecx, [ebp - 0x10d4]
mov esi, dword [ebp - 0x10cc]
push esi
push ecx
push edi
mov eax, dword [eax + 0x530354]
call eax
mov dword [ebp - 0x10c4], eax
add esp, 0xc
mov eax, dword [ebp - 0x10c8]
cmp dword [eax], 0
jne 0x4034cd
mov ecx, dword [ebp - 0x10d4]
mov dword [eax], ecx
imul ecx, dword [0x668604], 0x4e0
mov eax, dword [esi]
mov dword [ecx + 0x530120], eax
mov edx, dword [ecx + 0x530350]
test edx, edx
je 0x403628
cmp byte [edx], 0
je 0x403628
mov eax, dword [ecx + 0x53034c]
test eax, eax
je 0x403628
cmp byte [eax], 0
je 0x403628
push eax
push edx
push str.configurations
call fcn.0041c8c0
add esp, 4
push eax
lea eax, [ebp - 0x4b8]
push str._s__s__s_halftone
push eax
call fcn.00404ce0
lea eax, [ebp - 0x4b8]
push eax
push str.SCREENSTYLE
call fcn.00412900
imul edx, dword [0x668604], 0x4e0
add esp, 0x1c
mov dword [edx + 0x5303c4], eax
test eax, eax
jns 0x403560
mov dword [edx + 0x5303c4], 7
xor eax, eax
cmp dword [str.stochastic.dll], eax
je 0x40358e
mov edx, dword [edx + 0x5303c4]
xor ecx, ecx
cmp dword [ecx + 0x52a5e0], edx
je 0x4035fe
inc eax
imul ecx, eax, 0x88
cmp dword [ecx + 0x52a664], 0
jne 0x403572
mov eax, str.none
push eax
lea eax, [ebp - 0x28]
push str.halftones_s
push eax
call fcn.00415150
add esp, 0xc
cmp dword [eax + 0x14], 0x10
jb 0x4035ad
mov eax, dword [eax]
push eax
call fcn.0041c8c0
imul edx, dword [0x668604], 0x4e0
add esp, 4
sub edx, eax
mov cl, byte [eax]
lea eax, [eax + 1]
mov byte [edx + eax + 0x5303c7], cl
test cl, cl
jne 0x4035c2
mov ecx, dword [ebp - 0x14]
cmp ecx, 0x10
jb 0x403616
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40360c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403a4c
jmp 0x40360c
imul eax, eax, 0x88
mov eax, dword [eax + 0x52a664]
jmp 0x403593
push ecx
push edx
call fcn.004b3acc
add esp, 8
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
cmp byte [0x668648], 0
je 0x4039cf
imul ecx, dword [0x668604], 0x4e0
mov edx, dword [0x66860c]
mov eax, dword [ecx + 0x530358]
mov dword [0x668608], eax
mov eax, dword [ecx + 0x53011c]
test edx, edx
jne 0x40366d
mov dword [0x668610], eax
add eax, 0x40
push eax
call fcn.00417230
add esp, 4
jmp 0x40369c
cmp eax, dword [0x668610]
jle 0x4036a1
push edx
call fcn.00417300
imul eax, dword [0x668604], 0x4e0
mov eax, dword [eax + 0x53011c]
mov dword [0x668610], eax
add eax, 0x40
push eax
call fcn.00417230
add esp, 8
mov dword [0x66860c], eax
imul eax, dword [0x668604], 0x4e0
cmp byte [0x668648], 0
mov dword [eax + 0x530358], 0x404010
je 0x4039cf
mov ecx, edi
mov dword [ebp - 0x30], 0
xorps xmm0, xmm0
mov dword [ebp - 0x2c], 0
movups xmmword [ebp - 0x40], xmm0
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4036e0
sub ecx, edx
push ecx
push edi
lea ecx, [ebp - 0x40]
call fcn.004020f0
mov edi, dword [ebp - 0x2c]
lea edx, [ebp - 0x40]
mov esi, dword [ebp - 0x30]
cmp edi, 0x10
mov dword [ebp - 4], 0
cmovae edx, dword [ebp - 0x40]
test esi, esi
je 0x40372e
or ecx, 0xffffffff
lea eax, [esi - 1]
cmp eax, ecx
cmovb ecx, eax
add ecx, edx
cmp byte [ecx], 0x2e
je 0x40372a
cmp ecx, edx
je 0x40372e
dec ecx
cmp byte [ecx], 0x2e
jne 0x403720
sub ecx, edx
jmp 0x403731
or ecx, 0xffffffff
cmp esi, ecx
mov dword [ebp - 0x18], 0
lea eax, [ebp - 0x40]
mov dword [ebp - 0x14], 0
cmovb ecx, esi
xorps xmm0, xmm0
cmp edi, 0x10
push ecx
cmovae eax, dword [ebp - 0x40]
lea ecx, [ebp - 0x28]
push eax
movups xmmword [ebp - 0x28], xmm0
call fcn.004020f0
push 5
push str..path
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.00402c50
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x58], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x48], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
mov ecx, dword [ebp - 0x14]
mov byte [ebp - 4], 3
cmp ecx, 0x10
jb 0x4037cc
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4037c2
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403a51
push ecx
push edx
call fcn.004b3acc
add esp, 8
push dword [0x668600]
movzx eax, byte [0x66864a]
movsd xmm0, qword [0x52a028]
push eax
movzx eax, byte [0x668649]
push eax
imul eax, dword [0x668604], 0x4e0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
push dword [eax + 0x530120]
push dword [eax + 0x53011c]
lea eax, [ebp - 0x58]
sub esp, 0x20
mov ecx, esp
movsd qword [esp + 0x18], xmm0
push eax
call fcn.00402330
lea eax, [ebp - 0xb8]
push eax
call fcn.004106a0
imul ecx, dword [0x668604], 0x4e0
add esp, 0x38
mov dword [ebp - 0x10cc], eax
movsd xmm0, qword [eax]
lea edi, [eax + 0x48]
mov dword [ebp - 0x10c0], ecx
movsd qword [ecx + 0x530360], xmm0
lea esi, [ecx + 0x5303a8]
movsd xmm0, qword [eax + 8]
movsd qword [ecx + 0x530368], xmm0
movsd xmm0, qword [eax + 0x10]
movsd qword [ecx + 0x530370], xmm0
movsd xmm0, qword [eax + 0x18]
movsd qword [ecx + 0x530378], xmm0
movsd xmm0, qword [eax + 0x20]
movsd qword [ecx + 0x530380], xmm0
movsd xmm0, qword [eax + 0x28]
movsd qword [ecx + 0x530388], xmm0
movsd xmm0, qword [eax + 0x30]
movsd qword [ecx + 0x530390], xmm0
movsd xmm0, qword [eax + 0x38]
movsd qword [ecx + 0x530398], xmm0
movsd xmm0, qword [eax + 0x40]
movsd qword [ecx + 0x5303a0], xmm0
cmp esi, edi
je 0x403907
push dword [esi]
push esi
call fcn.004022f0
mov eax, dword [esi]
add esp, 8
mov dword [eax], eax
mov eax, dword [esi]
mov dword [eax + 4], eax
mov dword [esi + 4], 0
mov ecx, dword [esi]
mov eax, dword [edi]
mov dword [esi], eax
mov eax, dword [edi + 4]
mov dword [edi], ecx
mov ecx, dword [esi + 4]
mov dword [esi + 4], eax
mov eax, dword [ebp - 0x10cc]
mov dword [edi + 4], ecx
mov ecx, dword [ebp - 0x10c0]
lea esi, [eax + 0x50]
lea edi, [ecx + 0x5303b0]
cmp edi, esi
je 0x40393f
mov ecx, edi
call fcn.00402720
mov eax, dword [esi]
mov dword [edi], eax
mov eax, dword [esi + 4]
mov dword [edi + 4], eax
mov eax, dword [esi + 8]
mov dword [edi + 8], eax
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
lea ecx, [ebp - 0xb8]
call fcn.00402930
mov ecx, dword [ebp - 0x44]
mov byte [ebp - 4], 0
cmp ecx, 0x10
jb 0x403982
mov edx, dword [ebp - 0x58]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x403978
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403a56
push ecx
push edx
call fcn.004b3acc
add esp, 8
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 4], 0xffffffff
cmp ecx, 0x10
jb 0x4039bd
mov edx, dword [ebp - 0x40]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4039b3
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403a56
push ecx
push edx
call fcn.004b3acc
add esp, 8
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
imul eax, dword [0x668604], 0x4e0
xorps xmm0, xmm0
sub esp, 0x18
mov edx, esp
lea esi, [eax + 0x5304cc]
mov dword [eax + 0x530118], 1
mov ecx, esi
mov dword [eax + 0x5305f4], 0
movups xmmword [edx], xmm0
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 0
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x403a11
sub ecx, edi
push ecx
push esi
mov ecx, edx
call fcn.004020f0
call fcn.00404320
mov eax, dword [ebp - 0x10c4]
add esp, 0x18
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004b3f28
mov esp, ebp
pop ebp
ret
call fcn.004c342f
call fcn.004c342f
call fcn.004c342f
int3