Function at 0x441940
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x5a7774]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x20], 0
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
mov edx, dword [0x5a8938]
lea eax, [ecx + edx*2]
imul eax, dword [0x5a8940]
mov dword [ebp - 0x1c], eax
cmp dword [ebp + 0x10], 0
jne 0x441993
mov eax, dword [ebp - 0x1c]
add eax, 7
cdq
and edx, 7
add eax, edx
sar eax, 3
push eax
call fcn.00510802
add esp, 4
mov dword [ebp - 0x18], eax
jmp 0x4419dd
cmp dword [ebp + 0x10], 1
jne 0x4419ba
xor ecx, ecx
mov eax, dword [ebp - 0x1c]
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00510802
add esp, 4
mov dword [ebp - 0x18], eax
jmp 0x4419dd
push str.Internal_error._n
call fcn.0050eb24
mov ecx, 0x20
shl ecx, 1
add eax, ecx
push eax
call fcn.00511a6b
add esp, 8
push 1
call fcn.0051192a
cmp dword [ebp - 0x18], 0
jne 0x441a06
push 0x5880d8
call fcn.0050eb24
mov edx, 0x20
shl edx, 1
add eax, edx
push eax
call fcn.00511a6b
add esp, 8
push 1
call fcn.0051192a
mov eax, 1
imul ecx, eax, 0
mov edx, dword [ebp + 0xc]
movsx eax, byte [edx + ecx]
cmp eax, 0x2d
jne 0x441a43
mov ecx, 1
shl ecx, 0
mov edx, dword [ebp + 0xc]
movsx eax, byte [edx + ecx]
test eax, eax
jne 0x441a43
call fcn.0050eb24
mov ecx, 0x20
shl ecx, 0
add eax, ecx
mov dword [0x5b4e0c], eax
jmp 0x441a93
push 0x588124
mov edx, dword [ebp + 0xc]
push edx
call fcn.0050f46d
add esp, 8
mov dword [0x5b4e0c], eax
cmp dword [0x5b4e0c], 0
jne 0x441a93
mov eax, dword [ebp + 0xc]
push eax
push str.Failed_to_create_file:__s_n
call fcn.0050eb24
mov ecx, 0x20
shl ecx, 1
add eax, ecx
push eax
call fcn.00511a6b
add esp, 0xc
push 0
call fcn.005114fc
add esp, 4
push 1
call fcn.0051192a
push 0
push 0
push 0
push str.1.6.37
call fcn.0047468b
add esp, 0x10
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x441ad2
push str.Failed_to_initialize_PNG_writer._n
call fcn.0050eb24
mov edx, 0x20
shl edx, 1
add eax, edx
push eax
call fcn.00511a6b
add esp, 8
push 1
call fcn.0051192a
mov eax, dword [ebp - 0xc]
push eax
call fcn.0047539a
add esp, 4
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x441b0a
push str.Failed_to_initialize_PNG_write._n
call fcn.0050eb24
mov ecx, 0x20
shl ecx, 1
add eax, ecx
push eax
call fcn.00511a6b
add esp, 8
push 1
call fcn.0051192a
push 0x40
push 0x511b80
mov edx, dword [ebp - 0xc]
push edx
call fcn.00476106
add esp, 0xc
push 0
push eax
call fcn.0051a960
add esp, 8
test eax, eax
je 0x441b5f
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0xc]
push ecx
call fcn.0047473c
add esp, 8
push str.Failed_to_write_PNG_image._n
call fcn.0050eb24
mov edx, 0x20
shl edx, 1
add eax, edx
push eax
call fcn.00511a6b
add esp, 8
push 1
call fcn.0051192a
cmp dword [ebp + 0x10], 0
jne 0x441cab
push 6
call fcn.00510802
add esp, 4
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x441b9f
push 0x588194
call fcn.0050eb24
mov ecx, 0x20
shl ecx, 1
add eax, ecx
push eax
call fcn.00511a6b
add esp, 8
push 1
call fcn.0051192a
mov edx, 1
imul eax, edx, 0
mov ecx, 3
imul edx, ecx, 0
mov ecx, dword [ebp - 0x20]
mov al, byte [eax + 0x5a892c]
mov byte [ecx + edx], al
mov ecx, 1
shl ecx, 0
mov edx, 3
imul eax, edx, 0
mov edx, dword [ebp - 0x20]
mov cl, byte [ecx + 0x5a892c]
mov byte [edx + eax + 1], cl
mov edx, 1
shl edx, 1
mov eax, 3
imul ecx, eax, 0
mov eax, dword [ebp - 0x20]
mov dl, byte [edx + 0x5a892c]
mov byte [eax + ecx + 2], dl
mov eax, 1
imul ecx, eax, 0
mov edx, 3
shl edx, 0
mov eax, dword [ebp - 0x20]
mov cl, byte [ecx + 0x5a8930]
mov byte [eax + edx], cl
mov edx, 1
shl edx, 0
mov eax, 3
shl eax, 0
mov ecx, dword [ebp - 0x20]
mov dl, byte [edx + 0x5a8930]
mov byte [ecx + eax + 1], dl
mov eax, 1
shl eax, 1
mov ecx, 3
shl ecx, 0
mov edx, dword [ebp - 0x20]
mov al, byte [eax + 0x5a8930]
mov byte [edx + ecx + 2], al
mov ecx, 1
imul edx, ecx, 3
mov eax, 1
imul ecx, eax, 0
mov dl, byte [edx + 0x5a892c]
mov byte [ebp + ecx - 8], dl
mov eax, 1
imul ecx, eax, 3
mov edx, 1
shl edx, 0
mov al, byte [ecx + 0x5a8930]
mov byte [ebp + edx - 8], al
push 2
mov ecx, dword [ebp - 0x20]
push ecx
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp - 0xc]
push eax
call fcn.004763fe
add esp, 0x10
push 0
push 2
lea ecx, [ebp - 8]
push ecx
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp - 0xc]
push eax
call fcn.00476504
add esp, 0x14
mov ecx, dword [0x5b4e0c]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call fcn.004759ef
add esp, 8
cmp dword [ebp + 0x10], 0
jne 0x441ce8
push 0
push 0
push 0
push 3
push 1
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp - 0xc]
push eax
call fcn.0047634e
add esp, 0x24
jmp 0x441d0a
push 0
push 0
push 0
push 6
push 8
mov ecx, dword [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.0047634e
add esp, 0x24
push 1
cvtsi2sd xmm0, dword [0x5a893c]
mulsd xmm0, qword [0x58b698]
call fcn.0051a091
push eax
cvtsi2sd xmm0, dword [0x5a893c]
mulsd xmm0, qword [0x58b698]
call fcn.0051a091
push eax
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp - 0xc]
push eax
call fcn.004764d0
add esp, 0x14
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call fcn.00474a4b
add esp, 8
cmp dword [ebp + 0x10], 0
jne 0x441f53
mov eax, dword [ebp - 0x1c]
add eax, 7
cdq
and edx, 7
add eax, edx
sar eax, 3
push eax
push 0xff
mov eax, dword [ebp - 0x18]
push eax
call fcn.0050fef0
add esp, 0xc
mov dword [ebp - 0x14], 0
jmp 0x441d95
mov ecx, dword [ebp - 0x14]
add ecx, 1
mov dword [ebp - 0x14], ecx
mov edx, dword [0x5a8938]
imul edx, dword [0x5a8940]
cmp dword [ebp - 0x14], edx
jge 0x441db9
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.00474e5f
add esp, 8
jmp 0x441d8c
mov edx, dword [ebp + 8]
mov eax, dword [edx + 8]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x14], 0
jmp 0x441dd4
mov ecx, dword [ebp - 0x14]
add ecx, 1
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x14]
cmp eax, dword [edx + 4]
jge 0x441ef8
mov eax, dword [ebp - 0x1c]
add eax, 7
cdq
and edx, 7
add eax, edx
sar eax, 3
push eax
push 0xff
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.0050fef0
add esp, 0xc
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x34], edx
mov eax, dword [0x5a8938]
imul eax, dword [0x5a8940]
cdq
and edx, 7
add eax, edx
sar eax, 3
add eax, dword [ebp - 0x34]
mov dword [ebp - 0x34], eax
mov eax, dword [0x5a8938]
imul eax, dword [0x5a8940]
and eax, reloc.WS2_32.dll_getsockopt
jns 0x441e3d
dec eax
or eax, 0xfffffff8
inc eax
mov ecx, 7
sub ecx, eax
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x24], 0
jmp 0x441e59
mov edx, dword [ebp - 0x24]
add edx, 1
mov dword [ebp - 0x24], edx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x24]
cmp ecx, dword [eax + 4]
jge 0x441ec4
mov dword [ebp - 0x28], 0
jmp 0x441e76
mov edx, dword [ebp - 0x28]
add edx, 1
mov dword [ebp - 0x28], edx
mov eax, dword [ebp - 0x28]
cmp eax, dword [0x5a8940]
jge 0x441eb9
mov ecx, dword [ebp - 0x2c]
movzx edx, byte [ecx]
and edx, 1
mov ecx, dword [ebp - 0x38]
shl edx, cl
mov eax, dword [ebp - 0x34]
movzx ecx, byte [eax]
xor ecx, edx
mov edx, dword [ebp - 0x34]
mov byte [edx], cl
mov eax, dword [ebp - 0x38]
sub eax, 1
mov dword [ebp - 0x38], eax
jns 0x441eb7
mov ecx, dword [ebp - 0x34]
add ecx, 1
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x38], 7
jmp 0x441e6d
mov edx, dword [ebp - 0x2c]
add edx, 1
mov dword [ebp - 0x2c], edx
jmp 0x441e50
mov dword [ebp - 0x30], 0
jmp 0x441ed6
mov eax, dword [ebp - 0x30]
add eax, 1
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x30]
cmp ecx, dword [0x5a8940]
jge 0x441ef3
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp - 0xc]
push eax
call fcn.00474e5f
add esp, 8
jmp 0x441ecd
jmp 0x441dcb
mov eax, dword [ebp - 0x1c]
add eax, 7
cdq
and edx, 7
add eax, edx
sar eax, 3
push eax
push 0xff
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.0050fef0
add esp, 0xc
mov dword [ebp - 0x14], 0
jmp 0x441f2b
mov edx, dword [ebp - 0x14]
add edx, 1
mov dword [ebp - 0x14], edx
mov eax, dword [0x5a8938]
imul eax, dword [0x5a8940]
cmp dword [ebp - 0x14], eax
jge 0x441f4e
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call fcn.00474e5f
add esp, 8
jmp 0x441f22
jmp 0x4420d6
push 0x5a8930
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.00441900
add esp, 0xc
mov dword [ebp - 0x14], 0
jmp 0x441f7a
mov edx, dword [ebp - 0x14]
add edx, 1
mov dword [ebp - 0x14], edx
mov eax, dword [0x5a8938]
imul eax, dword [0x5a8940]
cmp dword [ebp - 0x14], eax
jge 0x441f9d
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call fcn.00474e5f
add esp, 8
jmp 0x441f71
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x14], 0
jmp 0x441fb8
mov edx, dword [ebp - 0x14]
add edx, 1
mov dword [ebp - 0x14], edx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x14]
cmp ecx, dword [eax + 4]
jge 0x44208b
push 0x5a8930
mov edx, dword [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0x18]
push eax
call fcn.00441900
add esp, 0xc
mov dword [ebp - 0x24], 0
jmp 0x441fee
mov ecx, dword [ebp - 0x24]
add ecx, 1
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x24]
cmp eax, dword [edx + 4]
jge 0x442057
mov dword [ebp - 0x28], 0
jmp 0x44200b
mov ecx, dword [ebp - 0x28]
add ecx, 1
mov dword [ebp - 0x28], ecx
mov edx, dword [ebp - 0x28]
cmp edx, dword [0x5a8940]
jge 0x44204c
mov eax, dword [ebp - 0x2c]
movzx ecx, byte [eax]
and ecx, 1
je 0x44204a
push 4
push 0x5a892c
mov edx, dword [0x5a8938]
add edx, dword [ebp - 0x24]
imul edx, dword [0x5a8940]
add edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x18]
lea ecx, [eax + edx*4]
push ecx
call fcn.0050c050
add esp, 0xc
jmp 0x442002
mov edx, dword [ebp - 0x2c]
add edx, 1
mov dword [ebp - 0x2c], edx
jmp 0x441fe5
mov dword [ebp - 0x30], 0
jmp 0x442069
mov eax, dword [ebp - 0x30]
add eax, 1
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x30]
cmp ecx, dword [0x5a8940]
jge 0x442086
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp - 0xc]
push eax
call fcn.00474e5f
add esp, 8
jmp 0x442060
jmp 0x441faf
push 0x5a8930
mov ecx, dword [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 0x18]
push edx
call fcn.00441900
add esp, 0xc
mov dword [ebp - 0x14], 0
jmp 0x4420b2
mov eax, dword [ebp - 0x14]
add eax, 1
mov dword [ebp - 0x14], eax
mov ecx, dword [0x5a8938]
imul ecx, dword [0x5a8940]
cmp dword [ebp - 0x14], ecx
jge 0x4420d6
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp - 0xc]
push eax
call fcn.00474e5f
add esp, 8
jmp 0x4420a9
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call fcn.004748c1
add esp, 8
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0xc]
push ecx
call fcn.0047473c
add esp, 8
mov edx, dword [0x5b4e0c]
push edx
call fcn.0050f81e
add esp, 4
mov eax, dword [ebp - 0x18]
push eax
call fcn.00510121
add esp, 4
mov ecx, dword [ebp - 0x20]
push ecx
call fcn.00510121
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0050bf8a
mov esp, ebp
pop ebp
ret