Function at 0x431d80
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x5ac774]
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 [0x5ad8fc]
lea eax, [ecx + edx*2]
imul eax, dword [0x5ad904]
mov dword [ebp - 0x1c], eax
cmp dword [ebp + 0x10], 0
jne 0x431dd3
mov eax, dword [ebp - 0x1c]
add eax, 7
cdq
and edx, 7
add eax, edx
sar eax, 3
push eax
call fcn.00512a5d
add esp, 4
mov dword [ebp - 0x18], eax
jmp 0x431e1d
cmp dword [ebp + 0x10], 1
jne 0x431dfa
xor ecx, ecx
mov eax, dword [ebp - 0x1c]
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00512a5d
add esp, 4
mov dword [ebp - 0x18], eax
jmp 0x431e1d
push str.Internal_error._n
call fcn.005106cc
mov ecx, 0x20
shl ecx, 1
add eax, ecx
push eax
call fcn.00513e8b
add esp, 8
push 1
call fcn.00513d43
cmp dword [ebp - 0x18], 0
jne 0x431e46
push 0x58ad4c
call fcn.005106cc
mov edx, 0x20
shl edx, 1
add eax, edx
push eax
call fcn.00513e8b
add esp, 8
push 1
call fcn.00513d43
mov eax, 1
imul ecx, eax, 0
mov edx, dword [ebp + 0xc]
movsx eax, byte [edx + ecx]
cmp eax, 0x2d
jne 0x431e83
mov ecx, 1
shl ecx, 0
mov edx, dword [ebp + 0xc]
movsx eax, byte [edx + ecx]
test eax, eax
jne 0x431e83
call fcn.005106cc
mov ecx, 0x20
shl ecx, 0
add eax, ecx
mov dword [0x5ba998], eax
jmp 0x431ed3
push 0x58ad48
mov edx, dword [ebp + 0xc]
push edx
call fcn.00513900
add esp, 8
mov dword [0x5ba998], eax
cmp dword [0x5ba998], 0
jne 0x431ed3
mov eax, dword [ebp + 0xc]
push eax
push str.Failed_to_create_file:__s_n
call fcn.005106cc
mov ecx, 0x20
shl ecx, 1
add eax, ecx
push eax
call fcn.00513e8b
add esp, 0xc
push 0
call fcn.00513915
add esp, 4
push 1
call fcn.00513d43
push 0
push 0
push 0
push str.1.6.37
call fcn.0047736f
add esp, 0x10
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x431f12
push str.Failed_to_initialize_PNG_writer._n
call fcn.005106cc
mov edx, 0x20
shl edx, 1
add eax, edx
push eax
call fcn.00513e8b
add esp, 8
push 1
call fcn.00513d43
mov eax, dword [ebp - 0xc]
push eax
call fcn.0047807e
add esp, 4
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x431f4a
push str.Failed_to_initialize_PNG_write._n
call fcn.005106cc
mov ecx, 0x20
shl ecx, 1
add eax, ecx
push eax
call fcn.00513e8b
add esp, 8
push 1
call fcn.00513d43
push 0x40
push 0x513fa0
mov edx, dword [ebp - 0xc]
push edx
call fcn.00478dea
add esp, 0xc
push 0
push eax
call fcn.0051d770
add esp, 8
test eax, eax
je 0x431f9f
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0xc]
push ecx
call fcn.00477420
add esp, 8
push str.Failed_to_write_PNG_image._n
call fcn.005106cc
mov edx, 0x20
shl edx, 1
add eax, edx
push eax
call fcn.00513e8b
add esp, 8
push 1
call fcn.00513d43
cmp dword [ebp + 0x10], 0
jne 0x4320eb
push 6
call fcn.00512a5d
add esp, 4
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x431fdf
push 0x58add4
call fcn.005106cc
mov ecx, 0x20
shl ecx, 1
add eax, ecx
push eax
call fcn.00513e8b
add esp, 8
push 1
call fcn.00513d43
mov edx, 1
imul eax, edx, 0
mov ecx, 3
imul edx, ecx, 0
mov ecx, dword [ebp - 0x20]
mov al, byte [eax + 0x5ad8f0]
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 + 0x5ad8f0]
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 + 0x5ad8f0]
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 + 0x5ad8f4]
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 + 0x5ad8f4]
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 + 0x5ad8f4]
mov byte [edx + ecx + 2], al
mov ecx, 1
imul edx, ecx, 3
mov eax, 1
imul ecx, eax, 0
mov dl, byte [edx + 0x5ad8f0]
mov byte [ebp + ecx - 8], dl
mov eax, 1
imul ecx, eax, 3
mov edx, 1
shl edx, 0
mov al, byte [ecx + 0x5ad8f4]
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.004790e2
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.004791e8
add esp, 0x14
mov ecx, dword [0x5ba998]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call fcn.004786d3
add esp, 8
cmp dword [ebp + 0x10], 0
jne 0x432128
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.00479032
add esp, 0x24
jmp 0x43214a
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.00479032
add esp, 0x24
push 1
cvtsi2sd xmm0, dword [0x5ad900]
mulsd xmm0, qword [0x58f798]
call fcn.0051cea1
push eax
cvtsi2sd xmm0, dword [0x5ad900]
mulsd xmm0, qword [0x58f798]
call fcn.0051cea1
push eax
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp - 0xc]
push eax
call fcn.004791b4
add esp, 0x14
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call fcn.0047772f
add esp, 8
cmp dword [ebp + 0x10], 0
jne 0x432393
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.0050ff40
add esp, 0xc
mov dword [ebp - 0x14], 0
jmp 0x4321d5
mov ecx, dword [ebp - 0x14]
add ecx, 1
mov dword [ebp - 0x14], ecx
mov edx, dword [0x5ad8fc]
imul edx, dword [0x5ad904]
cmp dword [ebp - 0x14], edx
jge 0x4321f9
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.00477b43
add esp, 8
jmp 0x4321cc
mov edx, dword [ebp + 8]
mov eax, dword [edx + 8]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x14], 0
jmp 0x432214
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 0x432338
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.0050ff40
add esp, 0xc
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x34], edx
mov eax, dword [0x5ad8fc]
imul eax, dword [0x5ad904]
cdq
and edx, 7
add eax, edx
sar eax, 3
add eax, dword [ebp - 0x34]
mov dword [ebp - 0x34], eax
mov eax, dword [0x5ad8fc]
imul eax, dword [0x5ad904]
and eax, reloc.WS2_32.dll_getsockopt
jns 0x43227d
dec eax
or eax, 0xfffffff8
inc eax
mov ecx, 7
sub ecx, eax
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x24], 0
jmp 0x432299
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 0x432304
mov dword [ebp - 0x28], 0
jmp 0x4322b6
mov edx, dword [ebp - 0x28]
add edx, 1
mov dword [ebp - 0x28], edx
mov eax, dword [ebp - 0x28]
cmp eax, dword [0x5ad904]
jge 0x4322f9
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 0x4322f7
mov ecx, dword [ebp - 0x34]
add ecx, 1
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x38], 7
jmp 0x4322ad
mov edx, dword [ebp - 0x2c]
add edx, 1
mov dword [ebp - 0x2c], edx
jmp 0x432290
mov dword [ebp - 0x30], 0
jmp 0x432316
mov eax, dword [ebp - 0x30]
add eax, 1
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x30]
cmp ecx, dword [0x5ad904]
jge 0x432333
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp - 0xc]
push eax
call fcn.00477b43
add esp, 8
jmp 0x43230d
jmp 0x43220b
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.0050ff40
add esp, 0xc
mov dword [ebp - 0x14], 0
jmp 0x43236b
mov edx, dword [ebp - 0x14]
add edx, 1
mov dword [ebp - 0x14], edx
mov eax, dword [0x5ad8fc]
imul eax, dword [0x5ad904]
cmp dword [ebp - 0x14], eax
jge 0x43238e
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call fcn.00477b43
add esp, 8
jmp 0x432362
jmp 0x432516
push 0x5ad8f4
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.00431d40
add esp, 0xc
mov dword [ebp - 0x14], 0
jmp 0x4323ba
mov edx, dword [ebp - 0x14]
add edx, 1
mov dword [ebp - 0x14], edx
mov eax, dword [0x5ad8fc]
imul eax, dword [0x5ad904]
cmp dword [ebp - 0x14], eax
jge 0x4323dd
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call fcn.00477b43
add esp, 8
jmp 0x4323b1
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x14], 0
jmp 0x4323f8
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 0x4324cb
push 0x5ad8f4
mov edx, dword [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0x18]
push eax
call fcn.00431d40
add esp, 0xc
mov dword [ebp - 0x24], 0
jmp 0x43242e
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 0x432497
mov dword [ebp - 0x28], 0
jmp 0x43244b
mov ecx, dword [ebp - 0x28]
add ecx, 1
mov dword [ebp - 0x28], ecx
mov edx, dword [ebp - 0x28]
cmp edx, dword [0x5ad904]
jge 0x43248c
mov eax, dword [ebp - 0x2c]
movzx ecx, byte [eax]
and ecx, 1
je 0x43248a
push 4
push 0x5ad8f0
mov edx, dword [0x5ad8fc]
add edx, dword [ebp - 0x24]
imul edx, dword [0x5ad904]
add edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x18]
lea ecx, [eax + edx*4]
push ecx
call fcn.0050ef60
add esp, 0xc
jmp 0x432442
mov edx, dword [ebp - 0x2c]
add edx, 1
mov dword [ebp - 0x2c], edx
jmp 0x432425
mov dword [ebp - 0x30], 0
jmp 0x4324a9
mov eax, dword [ebp - 0x30]
add eax, 1
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x30]
cmp ecx, dword [0x5ad904]
jge 0x4324c6
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp - 0xc]
push eax
call fcn.00477b43
add esp, 8
jmp 0x4324a0
jmp 0x4323ef
push 0x5ad8f4
mov ecx, dword [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 0x18]
push edx
call fcn.00431d40
add esp, 0xc
mov dword [ebp - 0x14], 0
jmp 0x4324f2
mov eax, dword [ebp - 0x14]
add eax, 1
mov dword [ebp - 0x14], eax
mov ecx, dword [0x5ad8fc]
imul ecx, dword [0x5ad904]
cmp dword [ebp - 0x14], ecx
jge 0x432516
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp - 0xc]
push eax
call fcn.00477b43
add esp, 8
jmp 0x4324e9
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call fcn.004775a5
add esp, 8
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0xc]
push ecx
call fcn.00477420
add esp, 8
mov edx, dword [0x5ba998]
push edx
call fcn.00513731
add esp, 4
mov eax, dword [ebp - 0x18]
push eax
call fcn.0050ff06
add esp, 4
mov ecx, dword [ebp - 0x20]
push ecx
call fcn.0050ff06
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0050ee9b
mov esp, ebp
pop ebp
ret