Function at 0x5b4de0
Capabilities:
Terminate process

Disassembly:
push 0xffffffffffffffff
push 0x67ebd1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x458
mov eax, dword [esp + 0x478]
push ebx
push ebp
push esi
mov esi, ecx
push edi
push eax
lea ecx, [esp + 0x18]
mov dword [esp + 0x68], esi
call fcn.006198df
mov al, byte [esp + 0x494]
mov dword [esp + 0x470], 0
test al, al
jne 0x5b4e4a
lea ecx, [esp + 0x14]
mov dword [esp + 0x470], 0xffffffff
call fcn.00619871
mov eax, 1
jmp 0x5b53a1
mov eax, dword [esp + 0x478]
test eax, eax
jne 0x5b4e81
push 0
push 0
push str.SiplProcess___WriteBMP:_Data_pointer_is_NULL
call fcn.0062dd90
lea ecx, [esp + 0x14]
mov dword [esp + 0x470], 0xffffffff
call fcn.00619871
mov eax, 0xfffffff4
jmp 0x5b53a1
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x5b4eb8
push 0
push 0
push str.SiplProcess___WriteBMP:_File_title_is_empty
call fcn.0062dd90
lea ecx, [esp + 0x14]
mov dword [esp + 0x470], 0xffffffff
call fcn.00619871
mov eax, 0xfffffff4
jmp 0x5b53a1
mov ebx, dword [esp + 0x47c]
test ebx, ebx
jle 0x5b537a
mov eax, dword [esp + 0x480]
test eax, eax
jle 0x5b537a
mov ecx, dword [0x6ed544]
mov dword [esp + 0x18], ecx
mov edi, dword [esp + 0x484]
mov byte [esp + 0x470], 1
cmp edi, 8
je 0x5b4f37
cmp edi, 0x18
je 0x5b4f37
mov edx, dword [esi + 0x18]
push str._in_WriteBMP_is_neither_8_bits_nor_24_bits._Cant_write_nas_a_BMP._n_nTerminate_application_
push edx
push str.WriteBMP:
lea eax, [esp + 0x24]
push str._s__s__s
push eax
call fcn.0060da8c
mov ecx, dword [esp + 0x2c]
add esp, 0x14
push 0
push 4
push ecx
call fcn.0062dd90
cmp eax, 6
jne 0x5b4fce
push 0
call fcn.005e246f
mov eax, edi
mov dword [esp + 0x1c], ecx
cdq
and edx, 7
add eax, edx
mov ebp, eax
sar ebp, 3
mov dword [esp + 0x20], ebp
mov edx, dword [esp + 0x48c]
mov eax, dword [esp + 0x490]
mov ecx, dword [esp + 0x488]
push edx
push eax
lea edx, [esp + 0x24]
push ecx
push edx
mov ecx, esi
mov byte [esp + 0x480], 2
call fcn.005b5740
mov eax, dword [esp + 0x1c]
push 0x68df18
push eax
call fcn.005e242f
mov esi, eax
add esp, 8
test esi, esi
jne 0x5b4ffd
mov ecx, dword [esp + 0x1c]
push str.for_writing
push ecx
push str.WriteBMP:_Cant_open
lea edx, [esp + 0x24]
push str._s_s_s
push edx
call fcn.0060da8c
mov eax, dword [esp + 0x2c]
add esp, 0x14
push esi
push esi
push eax
call fcn.0062dd90
lea ecx, [esp + 0x1c]
mov byte [esp + 0x470], 1
call fcn.00619871
lea ecx, [esp + 0x18]
mov byte [esp + 0x470], 0
call fcn.00619871
lea ecx, [esp + 0x14]
mov dword [esp + 0x470], 0xffffffff
call fcn.00619871
mov eax, 0xfffffff2
jmp 0x5b53a1
push esi
push 1
lea ecx, [esp + 0x30]
push 2
push ecx
mov word [esp + 0x38], 0x4d42
call fcn.005e22c5
add esp, 0x10
cmp edi, 8
jne 0x5b5039
mov edx, ebx
mov dword [esp + 0x32], 0x436
imul edx, dword [esp + 0x480]
add edx, 0x436
mov dword [esp + 0x2a], edx
jmp 0x5b505a
cmp edi, 0x18
jne 0x5b505a
mov eax, ebx
mov dword [esp + 0x32], 0x36
imul eax, dword [esp + 0x480]
add eax, 0x12
lea eax, [eax + eax*2]
mov dword [esp + 0x2a], eax
push esi
push 1
lea ecx, [esp + 0x32]
push 4
push ecx
call fcn.005e22c5
push esi
push 1
lea edx, [esp + 0x46]
push 2
push edx
mov word [esp + 0x4e], 0
call fcn.005e22c5
push esi
push 1
lea eax, [esp + 0x58]
push 2
push eax
mov word [esp + 0x60], 0
call fcn.005e22c5
push esi
push 1
lea ecx, [esp + 0x6a]
push 4
push ecx
call fcn.005e22c5
add esp, 0x40
lea edx, [esp + 0x38]
mov dword [esp + 0x38], 0x28
push esi
push 1
push 4
push edx
call fcn.005e22c5
push esi
push 1
lea eax, [esp + 0x54]
push 4
push eax
mov dword [esp + 0x5c], ebx
call fcn.005e22c5
mov ecx, dword [esp + 0x4a0]
push esi
push 1
lea edx, [esp + 0x68]
push 4
push edx
mov dword [esp + 0x70], ecx
call fcn.005e22c5
push esi
push 1
lea eax, [esp + 0x7c]
push 2
push eax
mov word [esp + 0x84], 1
call fcn.005e22c5
add esp, 0x40
lea ecx, [esp + 0x46]
mov word [esp + 0x46], di
push esi
push 1
push 2
push ecx
call fcn.005e22c5
push esi
push 1
lea edx, [esp + 0x60]
push 4
push edx
mov dword [esp + 0x68], 0
call fcn.005e22c5
imul ebp, ebx
mov eax, ebp
push esi
imul eax, dword [esp + 0x4a4]
push 1
lea ecx, [esp + 0x74]
push 4
push ecx
mov dword [esp + 0x7c], eax
call fcn.005e22c5
push esi
push 1
lea edx, [esp + 0x88]
push 4
push edx
mov dword [esp + 0x90], 0
call fcn.005e22c5
add esp, 0x40
lea eax, [esp + 0x54]
mov dword [esp + 0x54], 0
push esi
push 1
push 4
push eax
call fcn.005e22c5
push esi
push 1
lea ecx, [esp + 0x70]
push 4
push ecx
mov dword [esp + 0x78], 0
call fcn.005e22c5
push esi
push 1
lea edx, [esp + 0x84]
push 4
push edx
mov dword [esp + 0x8c], 0
call fcn.005e22c5
mov eax, ebx
add esp, 0x30
and eax, reloc.WSOCK32.dll_closesocket
mov byte [esp + 0x10], 0
jns 0x5b51d3
dec eax
or eax, 0xfffffffc
inc eax
je 0x5b51f4
inc byte [esp + 0x10]
mov ecx, dword [esp + 0x10]
and ecx, 0xff
add ecx, ebx
and ecx, reloc.WSOCK32.dll_closesocket
jns 0x5b51f2
dec ecx
or ecx, 0xfffffffc
inc ecx
jne 0x5b51d5
cmp edi, 8
jne 0x5b5227
xor eax, eax
lea ecx, [esp + 0x6a]
mov byte [ecx - 1], al
mov byte [ecx], al
mov byte [ecx - 2], al
inc eax
add ecx, 4
cmp eax, 0x100
jl 0x5b51ff
push esi
push 1
lea edx, [esp + 0x70]
push 0x400
push edx
call fcn.005e22c5
add esp, 0x10
mov al, byte [esp + 0x10]
test al, al
jbe 0x5b52f0
mov edi, dword [esp + 0x10]
and edi, 0xff
mov dword [esp + 0x60], edi
jl 0x5b527b
push edi
call fcn.00619f42
mov edx, eax
add esp, 4
test edx, edx
mov dword [esp + 0x10], edx
je 0x5b527f
mov ecx, dword [0x6f3014]
inc ecx
test edi, edi
mov dword [0x6f3014], ecx
jle 0x5b527f
mov ecx, edi
mov edi, edx
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x480]
dec eax
test eax, eax
jl 0x5b52d6
mov edi, eax
mov ecx, dword [esp + 0x478]
imul edi, dword [esp + 0x20]
imul edi, ebx
neg ebp
mov dword [esp + 0x24], ebp
add edi, ecx
lea ebp, [eax + 1]
mov ecx, dword [esp + 0x20]
push esi
push ebx
push ecx
push edi
call fcn.005e22c5
mov edx, dword [esp + 0x70]
mov eax, dword [esp + 0x20]
push esi
push 1
push edx
push eax
call fcn.005e22c5
mov ecx, dword [esp + 0x44]
add esp, 0x20
add edi, ecx
dec ebp
jne 0x5b52a7
mov edx, dword [esp + 0x10]
test edx, edx
je 0x5b5333
push edx
call fcn.00619f6b
mov eax, dword [0x6f3014]
add esp, 4
dec eax
mov dword [0x6f3014], eax
jmp 0x5b5333
mov ecx, dword [esp + 0x480]
lea eax, [ecx - 1]
test eax, eax
jl 0x5b5333
mov edi, eax
mov ecx, dword [esp + 0x478]
imul edi, dword [esp + 0x20]
imul edi, ebx
neg ebp
mov dword [esp + 0x24], ebp
add edi, ecx
lea ebp, [eax + 1]
mov edx, dword [esp + 0x20]
push esi
push ebx
push edx
push edi
call fcn.005e22c5
mov ecx, dword [esp + 0x34]
add esp, 0x10
add edi, ecx
dec ebp
jne 0x5b531a
mov ecx, dword [esp + 0x64]
push esi
call fcn.005b59b0
lea ecx, [esp + 0x1c]
mov byte [esp + 0x470], 1
call fcn.00619871
lea ecx, [esp + 0x18]
mov byte [esp + 0x470], 0
call fcn.00619871
lea ecx, [esp + 0x14]
mov dword [esp + 0x470], 0xffffffff
call fcn.00619871
mov eax, 1
jmp 0x5b53a1
push 0
push 0
push str.SiplProcess___WriteBMP:_Height_Width_parameter_is_less_than_or_0
call fcn.0062dd90
lea ecx, [esp + 0x14]
mov dword [esp + 0x470], 0xffffffff
call fcn.00619871
mov eax, 0xfffffffb
mov ecx, dword [esp + 0x468]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x464
ret 0x20