Function at 0x430ea0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x5a8774]
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 [0x5a9904]
lea eax, [ecx + edx*2]
imul eax, dword [0x5a9900]
mov dword [ebp - 0x1c], eax
cmp dword [ebp + 0x10], 0
jne 0x430ef3
mov eax, dword [ebp - 0x1c]
add eax, 7
cdq
and edx, 7
add eax, edx
sar eax, 3
push eax
call fcn.0050f364
add esp, 4
mov dword [ebp - 0x18], eax
jmp 0x430f3d
cmp dword [ebp + 0x10], 1
jne 0x430f1a
xor ecx, ecx
mov eax, dword [ebp - 0x1c]
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0050f364
add esp, 4
mov dword [ebp - 0x18], eax
jmp 0x430f3d
push str.Internal_error._n
call fcn.0050cfcc
mov ecx, 0x20
shl ecx, 1
add eax, ecx
push eax
call fcn.0051078b
add esp, 8
push 1
call fcn.00510643
cmp dword [ebp - 0x18], 0
jne 0x430f66
push 0x58775c
call fcn.0050cfcc
mov edx, 0x20
shl edx, 1
add eax, edx
push eax
call fcn.0051078b
add esp, 8
push 1
call fcn.00510643
mov eax, 1
imul ecx, eax, 0
mov edx, dword [ebp + 0xc]
movsx eax, byte [edx + ecx]
cmp eax, 0x2d
jne 0x430fa3
mov ecx, 1
shl ecx, 0
mov edx, dword [ebp + 0xc]
movsx eax, byte [edx + ecx]
test eax, eax
jne 0x430fa3
call fcn.0050cfcc
mov ecx, 0x20
shl ecx, 0
add eax, ecx
mov dword [0x5b61b8], eax
jmp 0x430ff3
push 0x5877a8
mov edx, dword [ebp + 0xc]
push edx
call fcn.00510200
add esp, 8
mov dword [0x5b61b8], eax
cmp dword [0x5b61b8], 0
jne 0x430ff3
mov eax, dword [ebp + 0xc]
push eax
push str.Failed_to_create_file:__s_n
call fcn.0050cfcc
mov ecx, 0x20
shl ecx, 1
add eax, ecx
push eax
call fcn.0051078b
add esp, 0xc
push 0
call fcn.00510215
add esp, 4
push 1
call fcn.00510643
push 0
push 0
push 0
push str.1.6.37
call fcn.00473dd6
add esp, 0x10
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x431032
push str.Failed_to_initialize_PNG_writer._n
call fcn.0050cfcc
mov edx, 0x20
shl edx, 1
add eax, edx
push eax
call fcn.0051078b
add esp, 8
push 1
call fcn.00510643
mov eax, dword [ebp - 0xc]
push eax
call fcn.00474ae5
add esp, 4
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x43106a
push str.Failed_to_initialize_PNG_write._n
call fcn.0050cfcc
mov ecx, 0x20
shl ecx, 1
add eax, ecx
push eax
call fcn.0051078b
add esp, 8
push 1
call fcn.00510643
push 0x40
push 0x5108a0
mov edx, dword [ebp - 0xc]
push edx
call fcn.00475851
add esp, 0xc
push 0
push eax
call fcn.0051a100
add esp, 8
test eax, eax
je 0x4310bf
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0xc]
push ecx
call fcn.00473e87
add esp, 8
push str.Failed_to_write_PNG_image._n
call fcn.0050cfcc
mov edx, 0x20
shl edx, 1
add eax, edx
push eax
call fcn.0051078b
add esp, 8
push 1
call fcn.00510643
cmp dword [ebp + 0x10], 0
jne 0x43120b
push 6
call fcn.0050f364
add esp, 4
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x4310ff
push 0x58786c
call fcn.0050cfcc
mov ecx, 0x20
shl ecx, 1
add eax, ecx
push eax
call fcn.0051078b
add esp, 8
push 1
call fcn.00510643
mov edx, 1
imul eax, edx, 0
mov ecx, 3
imul edx, ecx, 0
mov ecx, dword [ebp - 0x20]
mov al, byte [eax + 0x5a98f4]
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 + 0x5a98f4]
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 + 0x5a98f4]
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 + 0x5a98f0]
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 + 0x5a98f0]
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 + 0x5a98f0]
mov byte [edx + ecx + 2], al
mov ecx, 1
imul edx, ecx, 3
mov eax, 1
imul ecx, eax, 0
mov dl, byte [edx + 0x5a98f4]
mov byte [ebp + ecx - 8], dl
mov eax, 1
imul ecx, eax, 3
mov edx, 1
shl edx, 0
mov al, byte [ecx + 0x5a98f0]
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.00475b49
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.00475c4f
add esp, 0x14
mov ecx, dword [0x5b61b8]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call fcn.0047513a
add esp, 8
cmp dword [ebp + 0x10], 0
jne 0x431248
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.00475a99
add esp, 0x24
jmp 0x43126a
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.00475a99
add esp, 0x24
push 1
cvtsi2sd xmm0, dword [0x5a98fc]
mulsd xmm0, qword [0x58c110]
call fcn.00519831
push eax
cvtsi2sd xmm0, dword [0x5a98fc]
mulsd xmm0, qword [0x58c110]
call fcn.00519831
push eax
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp - 0xc]
push eax
call fcn.00475c1b
add esp, 0x14
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call fcn.00474196
add esp, 8
cmp dword [ebp + 0x10], 0
jne 0x4314b3
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.0050c840
add esp, 0xc
mov dword [ebp - 0x14], 0
jmp 0x4312f5
mov ecx, dword [ebp - 0x14]
add ecx, 1
mov dword [ebp - 0x14], ecx
mov edx, dword [0x5a9904]
imul edx, dword [0x5a9900]
cmp dword [ebp - 0x14], edx
jge 0x431319
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.004745aa
add esp, 8
jmp 0x4312ec
mov edx, dword [ebp + 8]
mov eax, dword [edx + 8]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x14], 0
jmp 0x431334
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 0x431458
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.0050c840
add esp, 0xc
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x34], edx
mov eax, dword [0x5a9904]
imul eax, dword [0x5a9900]
cdq
and edx, 7
add eax, edx
sar eax, 3
add eax, dword [ebp - 0x34]
mov dword [ebp - 0x34], eax
mov eax, dword [0x5a9904]
imul eax, dword [0x5a9900]
and eax, reloc.WS2_32.dll_getsockopt
jns 0x43139d
dec eax
or eax, 0xfffffff8
inc eax
mov ecx, 7
sub ecx, eax
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x24], 0
jmp 0x4313b9
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 0x431424
mov dword [ebp - 0x28], 0
jmp 0x4313d6
mov edx, dword [ebp - 0x28]
add edx, 1
mov dword [ebp - 0x28], edx
mov eax, dword [ebp - 0x28]
cmp eax, dword [0x5a9900]
jge 0x431419
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 0x431417
mov ecx, dword [ebp - 0x34]
add ecx, 1
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x38], 7
jmp 0x4313cd
mov edx, dword [ebp - 0x2c]
add edx, 1
mov dword [ebp - 0x2c], edx
jmp 0x4313b0
mov dword [ebp - 0x30], 0
jmp 0x431436
mov eax, dword [ebp - 0x30]
add eax, 1
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x30]
cmp ecx, dword [0x5a9900]
jge 0x431453
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp - 0xc]
push eax
call fcn.004745aa
add esp, 8
jmp 0x43142d
jmp 0x43132b
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.0050c840
add esp, 0xc
mov dword [ebp - 0x14], 0
jmp 0x43148b
mov edx, dword [ebp - 0x14]
add edx, 1
mov dword [ebp - 0x14], edx
mov eax, dword [0x5a9904]
imul eax, dword [0x5a9900]
cmp dword [ebp - 0x14], eax
jge 0x4314ae
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call fcn.004745aa
add esp, 8
jmp 0x431482
jmp 0x431636
push 0x5a98f0
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.00430e60
add esp, 0xc
mov dword [ebp - 0x14], 0
jmp 0x4314da
mov edx, dword [ebp - 0x14]
add edx, 1
mov dword [ebp - 0x14], edx
mov eax, dword [0x5a9904]
imul eax, dword [0x5a9900]
cmp dword [ebp - 0x14], eax
jge 0x4314fd
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call fcn.004745aa
add esp, 8
jmp 0x4314d1
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x14], 0
jmp 0x431518
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 0x4315eb
push 0x5a98f0
mov edx, dword [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0x18]
push eax
call fcn.00430e60
add esp, 0xc
mov dword [ebp - 0x24], 0
jmp 0x43154e
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 0x4315b7
mov dword [ebp - 0x28], 0
jmp 0x43156b
mov ecx, dword [ebp - 0x28]
add ecx, 1
mov dword [ebp - 0x28], ecx
mov edx, dword [ebp - 0x28]
cmp edx, dword [0x5a9900]
jge 0x4315ac
mov eax, dword [ebp - 0x2c]
movzx ecx, byte [eax]
and ecx, 1
je 0x4315aa
push 4
push 0x5a98f4
mov edx, dword [0x5a9904]
add edx, dword [ebp - 0x24]
imul edx, dword [0x5a9900]
add edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x18]
lea ecx, [eax + edx*4]
push ecx
call fcn.0050b860
add esp, 0xc
jmp 0x431562
mov edx, dword [ebp - 0x2c]
add edx, 1
mov dword [ebp - 0x2c], edx
jmp 0x431545
mov dword [ebp - 0x30], 0
jmp 0x4315c9
mov eax, dword [ebp - 0x30]
add eax, 1
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x30]
cmp ecx, dword [0x5a9900]
jge 0x4315e6
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp - 0xc]
push eax
call fcn.004745aa
add esp, 8
jmp 0x4315c0
jmp 0x43150f
push 0x5a98f0
mov ecx, dword [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 0x18]
push edx
call fcn.00430e60
add esp, 0xc
mov dword [ebp - 0x14], 0
jmp 0x431612
mov eax, dword [ebp - 0x14]
add eax, 1
mov dword [ebp - 0x14], eax
mov ecx, dword [0x5a9904]
imul ecx, dword [0x5a9900]
cmp dword [ebp - 0x14], ecx
jge 0x431636
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp - 0xc]
push eax
call fcn.004745aa
add esp, 8
jmp 0x431609
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call fcn.0047400c
add esp, 8
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0xc]
push ecx
call fcn.00473e87
add esp, 8
mov edx, dword [0x5b61b8]
push edx
call fcn.00510036
add esp, 4
mov eax, dword [ebp - 0x18]
push eax
call fcn.0050c806
add esp, 4
mov ecx, dword [ebp - 0x20]
push ecx
call fcn.0050c806
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0050b792
mov esp, ebp
pop ebp
ret