Function at 0x43e050
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x5b7780]
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 [0x5b8928]
lea eax, [ecx + edx*2]
imul eax, dword [0x5b8920]
mov dword [ebp - 0x1c], eax
cmp dword [ebp + 0x10], 0
jne 0x43e0a3
mov eax, dword [ebp - 0x1c]
add eax, 7
cdq
and edx, 7
add eax, edx
sar eax, 3
push eax
call fcn.00516cfd
add esp, 4
mov dword [ebp - 0x18], eax
jmp 0x43e0ed
cmp dword [ebp + 0x10], 1
jne 0x43e0ca
xor ecx, ecx
mov eax, dword [ebp - 0x1c]
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00516cfd
add esp, 4
mov dword [ebp - 0x18], eax
jmp 0x43e0ed
push str.Internal_error._n
call fcn.0051ed92
mov ecx, 0x20
shl ecx, 1
add eax, ecx
push eax
call fcn.00520c4b
add esp, 8
push 1
call fcn.00520b03
cmp dword [ebp - 0x18], 0
jne 0x43e116
push 0x59487c
call fcn.0051ed92
mov edx, 0x20
shl edx, 1
add eax, edx
push eax
call fcn.00520c4b
add esp, 8
push 1
call fcn.00520b03
mov eax, 1
imul ecx, eax, 0
mov edx, dword [ebp + 0xc]
movsx eax, byte [edx + ecx]
cmp eax, 0x2d
jne 0x43e153
mov ecx, 1
shl ecx, 0
mov edx, dword [ebp + 0xc]
movsx eax, byte [edx + ecx]
test eax, eax
jne 0x43e153
call fcn.0051ed92
mov ecx, 0x20
shl ecx, 0
add eax, ecx
mov dword [0x5c5a74], eax
jmp 0x43e1a3
push 0x5948e4
mov edx, dword [ebp + 0xc]
push edx
call fcn.005206c0
add esp, 8
mov dword [0x5c5a74], eax
cmp dword [0x5c5a74], 0
jne 0x43e1a3
mov eax, dword [ebp + 0xc]
push eax
push str.Failed_to_create_file:__s_n
call fcn.0051ed92
mov ecx, 0x20
shl ecx, 1
add eax, ecx
push eax
call fcn.00520c4b
add esp, 0xc
push 0
call fcn.005206d5
add esp, 4
push 1
call fcn.00520b03
push 0
push 0
push 0
push str.1.6.37
call fcn.0047e9ff
add esp, 0x10
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x43e1e2
push str.Failed_to_initialize_PNG_writer._n
call fcn.0051ed92
mov edx, 0x20
shl edx, 1
add eax, edx
push eax
call fcn.00520c4b
add esp, 8
push 1
call fcn.00520b03
mov eax, dword [ebp - 0xc]
push eax
call fcn.0047f70e
add esp, 4
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x43e21a
push str.Failed_to_initialize_PNG_write._n
call fcn.0051ed92
mov ecx, 0x20
shl ecx, 1
add eax, ecx
push eax
call fcn.00520c4b
add esp, 8
push 1
call fcn.00520b03
push 0x40
push 0x520d60
mov edx, dword [ebp - 0xc]
push edx
call fcn.0048047a
add esp, 0xc
push 0
push eax
call fcn.00524ee0
add esp, 8
test eax, eax
je 0x43e26f
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0xc]
push ecx
call fcn.0047eab0
add esp, 8
push str.Failed_to_write_PNG_image._n
call fcn.0051ed92
mov edx, 0x20
shl edx, 1
add eax, edx
push eax
call fcn.00520c4b
add esp, 8
push 1
call fcn.00520b03
cmp dword [ebp + 0x10], 0
jne 0x43e3bb
push 6
call fcn.00516cfd
add esp, 4
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x43e2af
push 0x594904
call fcn.0051ed92
mov ecx, 0x20
shl ecx, 1
add eax, ecx
push eax
call fcn.00520c4b
add esp, 8
push 1
call fcn.00520b03
mov edx, 1
imul eax, edx, 0
mov ecx, 3
imul edx, ecx, 0
mov ecx, dword [ebp - 0x20]
mov al, byte [eax + 0x5b8918]
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 + 0x5b8918]
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 + 0x5b8918]
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 + 0x5b8914]
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 + 0x5b8914]
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 + 0x5b8914]
mov byte [edx + ecx + 2], al
mov ecx, 1
imul edx, ecx, 3
mov eax, 1
imul ecx, eax, 0
mov dl, byte [edx + 0x5b8918]
mov byte [ebp + ecx - 8], dl
mov eax, 1
imul ecx, eax, 3
mov edx, 1
shl edx, 0
mov al, byte [ecx + 0x5b8914]
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.00480772
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.00480878
add esp, 0x14
mov ecx, dword [0x5c5a74]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call fcn.0047fd63
add esp, 8
cmp dword [ebp + 0x10], 0
jne 0x43e3f8
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.004806c2
add esp, 0x24
jmp 0x43e41a
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.004806c2
add esp, 0x24
push 1
cvtsi2sd xmm0, dword [0x5b8924]
mulsd xmm0, qword [0x599558]
call fcn.0052477f
push eax
cvtsi2sd xmm0, dword [0x5b8924]
mulsd xmm0, qword [0x599558]
call fcn.0052477f
push eax
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp - 0xc]
push eax
call fcn.00480844
add esp, 0x14
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call fcn.0047edbf
add esp, 8
cmp dword [ebp + 0x10], 0
jne 0x43e663
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.00516d90
add esp, 0xc
mov dword [ebp - 0x14], 0
jmp 0x43e4a5
mov ecx, dword [ebp - 0x14]
add ecx, 1
mov dword [ebp - 0x14], ecx
mov edx, dword [0x5b8928]
imul edx, dword [0x5b8920]
cmp dword [ebp - 0x14], edx
jge 0x43e4c9
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.0047f1d3
add esp, 8
jmp 0x43e49c
mov edx, dword [ebp + 8]
mov eax, dword [edx + 8]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x14], 0
jmp 0x43e4e4
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 0x43e608
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.00516d90
add esp, 0xc
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x34], edx
mov eax, dword [0x5b8928]
imul eax, dword [0x5b8920]
cdq
and edx, 7
add eax, edx
sar eax, 3
add eax, dword [ebp - 0x34]
mov dword [ebp - 0x34], eax
mov eax, dword [0x5b8928]
imul eax, dword [0x5b8920]
and eax, reloc.WS2_32.dll_getsockopt
jns 0x43e54d
dec eax
or eax, 0xfffffff8
inc eax
mov ecx, 7
sub ecx, eax
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x24], 0
jmp 0x43e569
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 0x43e5d4
mov dword [ebp - 0x28], 0
jmp 0x43e586
mov edx, dword [ebp - 0x28]
add edx, 1
mov dword [ebp - 0x28], edx
mov eax, dword [ebp - 0x28]
cmp eax, dword [0x5b8920]
jge 0x43e5c9
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 0x43e5c7
mov ecx, dword [ebp - 0x34]
add ecx, 1
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x38], 7
jmp 0x43e57d
mov edx, dword [ebp - 0x2c]
add edx, 1
mov dword [ebp - 0x2c], edx
jmp 0x43e560
mov dword [ebp - 0x30], 0
jmp 0x43e5e6
mov eax, dword [ebp - 0x30]
add eax, 1
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x30]
cmp ecx, dword [0x5b8920]
jge 0x43e603
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp - 0xc]
push eax
call fcn.0047f1d3
add esp, 8
jmp 0x43e5dd
jmp 0x43e4db
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.00516d90
add esp, 0xc
mov dword [ebp - 0x14], 0
jmp 0x43e63b
mov edx, dword [ebp - 0x14]
add edx, 1
mov dword [ebp - 0x14], edx
mov eax, dword [0x5b8928]
imul eax, dword [0x5b8920]
cmp dword [ebp - 0x14], eax
jge 0x43e65e
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call fcn.0047f1d3
add esp, 8
jmp 0x43e632
jmp 0x43e7e6
push 0x5b8914
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.0043e010
add esp, 0xc
mov dword [ebp - 0x14], 0
jmp 0x43e68a
mov edx, dword [ebp - 0x14]
add edx, 1
mov dword [ebp - 0x14], edx
mov eax, dword [0x5b8928]
imul eax, dword [0x5b8920]
cmp dword [ebp - 0x14], eax
jge 0x43e6ad
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call fcn.0047f1d3
add esp, 8
jmp 0x43e681
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x14], 0
jmp 0x43e6c8
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 0x43e79b
push 0x5b8914
mov edx, dword [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0x18]
push eax
call fcn.0043e010
add esp, 0xc
mov dword [ebp - 0x24], 0
jmp 0x43e6fe
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 0x43e767
mov dword [ebp - 0x28], 0
jmp 0x43e71b
mov ecx, dword [ebp - 0x28]
add ecx, 1
mov dword [ebp - 0x28], ecx
mov edx, dword [ebp - 0x28]
cmp edx, dword [0x5b8920]
jge 0x43e75c
mov eax, dword [ebp - 0x2c]
movzx ecx, byte [eax]
and ecx, 1
je 0x43e75a
push 4
push 0x5b8918
mov edx, dword [0x5b8928]
add edx, dword [ebp - 0x24]
imul edx, dword [0x5b8920]
add edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x18]
lea ecx, [eax + edx*4]
push ecx
call fcn.005166a0
add esp, 0xc
jmp 0x43e712
mov edx, dword [ebp - 0x2c]
add edx, 1
mov dword [ebp - 0x2c], edx
jmp 0x43e6f5
mov dword [ebp - 0x30], 0
jmp 0x43e779
mov eax, dword [ebp - 0x30]
add eax, 1
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x30]
cmp ecx, dword [0x5b8920]
jge 0x43e796
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp - 0xc]
push eax
call fcn.0047f1d3
add esp, 8
jmp 0x43e770
jmp 0x43e6bf
push 0x5b8914
mov ecx, dword [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 0x18]
push edx
call fcn.0043e010
add esp, 0xc
mov dword [ebp - 0x14], 0
jmp 0x43e7c2
mov eax, dword [ebp - 0x14]
add eax, 1
mov dword [ebp - 0x14], eax
mov ecx, dword [0x5b8928]
imul ecx, dword [0x5b8920]
cmp dword [ebp - 0x14], ecx
jge 0x43e7e6
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp - 0xc]
push eax
call fcn.0047f1d3
add esp, 8
jmp 0x43e7b9
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call fcn.0047ec35
add esp, 8
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0xc]
push ecx
call fcn.0047eab0
add esp, 8
mov edx, dword [0x5c5a74]
push edx
call fcn.005204ed
add esp, 4
mov eax, dword [ebp - 0x18]
push eax
call fcn.005165cb
add esp, 4
mov ecx, dword [ebp - 0x20]
push ecx
call fcn.005165cb
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00516529
mov esp, ebp
pop ebp
ret