Function at 0x4055b0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46c7eb
mov eax, dword fs:[0]
push eax
sub esp, 0x248
mov eax, dword [0x557834]
xor eax, ebp
mov dword [ebp - 0x40], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x230], ecx
push 2
mov ecx, dword [ebp - 0x230]
call fcn.00410f10
push 3
mov ecx, dword [ebp - 0x230]
call fcn.00410f10
mov eax, dword [ebp - 0x230]
mov cl, byte [eax + 0x278]
mov byte [ebp - 0x15], cl
mov byte [ebp - 0x29], 0
mov edx, dword [ebp - 0x230]
movzx eax, byte [edx + 0x278]
cmp eax, 2
jne 0x40565a
push 0
push 0
push str.Camera_is_closed_Please_Open_it.
call fcn.0043862e
push 0
push 0xc8
push 2
mov ecx, dword [ebp - 0x230]
call fcn.00410ee0
push 0
push 0x64
push 3
mov ecx, dword [ebp - 0x230]
call fcn.00410ee0
jmp 0x405df2
mov ecx, dword [ebp - 0x230]
mov byte [ecx + 0x278], 2
push 0
push 0x3e8
mov ecx, dword [ebp - 0x230]
call fcn.0043f389
mov ecx, eax
call fcn.0043f55c
push 0
push 0x452
mov ecx, dword [ebp - 0x230]
call fcn.0043f389
mov ecx, eax
call fcn.0043f55c
movzx edx, byte [ebp - 0x15]
test edx, edx
jne 0x4056c9
push 0xffffffffffffffff
mov eax, dword [ebp - 0x230]
mov ecx, dword [eax + 0x2c8]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [ebp - 0x230]
mov eax, dword [edx + 0x2c8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0xffffffffffffffff
mov ecx, dword [ebp - 0x230]
mov edx, dword [ecx + 0x2cc]
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [ebp - 0x230]
mov ecx, dword [eax + 0x2cc]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x230]
mov ax, word [edx + 0x1c8]
mov word [ebp - 0x28], ax
mov ecx, dword [ebp - 0x230]
mov dx, word [ecx + 0x1ca]
mov word [ebp - 0x24], dx
mov eax, dword [ebp - 0x230]
mov cl, byte [eax + 0x1cc]
mov byte [ebp - 0x16], cl
push 0x471b98
mov edx, dword [ebp - 0x230]
mov eax, dword [edx + 0x1dc]
push eax
call fcn.004535f0
add esp, 8
test eax, eax
jne 0x40574b
movzx ecx, word [ebp - 0x24]
add ecx, 0xa
mov word [ebp - 0x24], cx
movzx edx, word [ebp - 0x28]
movzx eax, word [ebp - 0x24]
imul edx, eax
imul edx, edx, 3
push edx
call fcn.00453526
add esp, 4
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x4057b0
push 0
push 0
push 0x471ba0
call fcn.0043862e
push 1
push 0x3e8
mov ecx, dword [ebp - 0x230]
call fcn.0043f389
mov ecx, eax
call fcn.0043f55c
push 1
push 0x452
mov ecx, dword [ebp - 0x230]
call fcn.0043f389
mov ecx, eax
call fcn.0043f55c
jmp 0x405df2
mov ecx, dword [ebp - 0x230]
movzx edx, byte [ecx + 0x1cc]
cmp edx, 5
jne 0x4057ce
mov dword [ebp - 0x234], 0x10
jmp 0x4057ed
mov eax, dword [ebp - 0x230]
movzx ecx, byte [eax + 0x1cc]
sub ecx, 1
neg ecx
sbb ecx, ecx
neg ecx
add ecx, 1
mov dword [ebp - 0x234], ecx
mov dl, byte [ebp - 0x234]
mov byte [ebp - 0x2a], dl
movzx eax, word [ebp - 0x28]
movzx ecx, word [ebp - 0x24]
imul eax, ecx
movzx edx, byte [ebp - 0x2a]
imul eax, edx
add eax, 0x100000
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
push eax
call fcn.00453526
add esp, 4
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x405876
mov ecx, dword [ebp - 0x20]
push ecx
call fcn.00453449
add esp, 4
push 0
push 0
push str.Memory_allocate_error_
call fcn.0043862e
push 1
push 0x3e8
mov ecx, dword [ebp - 0x230]
call fcn.0043f389
mov ecx, eax
call fcn.0043f55c
push 1
push 0x452
mov ecx, dword [ebp - 0x230]
call fcn.0043f389
mov ecx, eax
call fcn.0043f55c
jmp 0x405df2
mov edx, dword [ebp - 0x10]
push edx
push 0
mov eax, dword [ebp - 0x1c]
push eax
call fcn.00452b90
add esp, 0xc
mov dword [ebp - 0x14], 0
jmp 0x40589a
mov ecx, dword [ebp - 0x14]
add ecx, 1
mov dword [ebp - 0x14], ecx
cmp dword [ebp - 0x14], 5
jae 0x405919
mov edx, dword [ebp - 0x230]
movzx eax, byte [edx + 0x1cc]
cmp eax, 5
jne 0x4058be
mov dword [ebp - 0x238], 0x10
jmp 0x4058dd
mov ecx, dword [ebp - 0x230]
movzx edx, byte [ecx + 0x1cc]
sub edx, 1
neg edx
sbb edx, edx
neg edx
add edx, 1
mov dword [ebp - 0x238], edx
mov al, byte [ebp - 0x238]
mov byte [ebp - 0x2b], al
movzx ecx, word [ebp - 0x28]
movzx edx, word [ebp - 0x24]
imul ecx, edx
movzx eax, byte [ebp - 0x2b]
imul ecx, eax
push ecx
mov ecx, dword [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 0x230]
mov ecx, dword [edx + 0x53d4]
call fcn.0041f300
test eax, eax
je 0x405914
jmp 0x405919
jmp 0x405891
cmp dword [ebp - 0x14], 5
jne 0x405932
push 0
push 0
push str.failed_to_save_
call fcn.0043862e
jmp 0x405d5e
mov eax, dword [ebp - 0x230]
mov cx, word [eax + 0x1ca]
mov word [ebp - 0x24], cx
movzx edx, word [ebp - 0x28]
movzx eax, word [ebp - 0x24]
imul edx, eax
movzx ecx, byte [ebp - 0x16]
sub ecx, 1
neg ecx
sbb ecx, ecx
neg ecx
add ecx, 1
imul edx, ecx
push edx
mov edx, dword [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0x230]
mov ecx, dword [eax + 0x53d4]
call fcn.0041eec0
mov ecx, dword [ebp - 0x230]
movzx edx, word [ecx + 0x1ca]
push edx
mov eax, dword [ebp - 0x230]
movzx ecx, word [eax + 0x1c8]
push ecx
mov edx, dword [ebp - 0x20]
push edx
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x230]
mov ecx, dword [ecx + 0x53d4]
call fcn.004204a0
mov edx, dword [ebp - 0x230]
mov al, byte [ebp - 0x15]
mov byte [edx + 0x278], al
movzx ecx, byte [ebp - 0x15]
test ecx, ecx
jne 0x4059f3
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov edx, dword [ebp - 0x230]
mov dword [edx + 0x2c8], eax
mov eax, dword [ebp - 0x230]
push eax
push 0
push 0x4186b0
call fcn.00453392
add esp, 0xc
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov ecx, dword [ebp - 0x230]
mov dword [ecx + 0x2cc], eax
mov edx, dword [ebp - 0x230]
push edx
push 0
push 0x418910
call fcn.00453392
add esp, 0xc
lea eax, [ebp - 0x38]
push eax
call fcn.00410150
lea ecx, [ebp - 0x3c]
call fcn.00411090
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x38]
call fcn.00410b70
push eax
lea ecx, [ebp - 0x38]
call fcn.00410b10
push eax
lea ecx, [ebp - 0x38]
call fcn.00410a90
push eax
lea ecx, [ebp - 0x38]
call fcn.00410a20
push eax
lea ecx, [ebp - 0x38]
call fcn.00410940
push eax
push str.P_02d_02d_02d_02d_02d
lea ecx, [ebp - 0x3c]
push ecx
call fcn.004112c0
add esp, 0x1c
lea ecx, [ebp - 0x30]
call fcn.00411090
mov byte [ebp - 4], 1
push str.Jpeg_File_.jpg_.jpgBitmap_File_.bmp_.bmpRaw_File_.raw_.raw
lea ecx, [ebp - 0x210]
call fcn.00401870
mov byte [ebp - 4], 2
push 0
push 0
lea ecx, [ebp - 0x210]
call fcn.00401d70
push eax
push 6
lea ecx, [ebp - 0x3c]
call fcn.00401d70
push eax
push 0
push 0
lea ecx, [ebp - 0x20c]
call fcn.00441135
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x20c]
call fcn.00441009
cmp eax, 1
jne 0x405d25
lea edx, [ebp - 0x220]
push edx
lea ecx, [ebp - 0x20c]
call fcn.004412e1
mov dword [ebp - 0x23c], eax
mov eax, dword [ebp - 0x23c]
mov dword [ebp - 0x240], eax
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x240]
push ecx
lea ecx, [ebp - 0x3c]
call fcn.004110d0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x220]
call fcn.004018f0
lea ecx, [ebp - 0x20c]
call fcn.00440d27
movzx edx, word [eax + 0x3a]
test edx, edx
jne 0x405b9c
lea ecx, [ebp - 0x20c]
call fcn.00440d27
mov eax, dword [eax + 0x18]
mov dword [ebp - 0x244], eax
cmp dword [ebp - 0x244], 1
je 0x405b65
cmp dword [ebp - 0x244], 2
je 0x405b74
cmp dword [ebp - 0x244], 3
je 0x405b83
jmp 0x405b90
push 0x471c40
lea ecx, [ebp - 0x30]
call fcn.00401910
jmp 0x405b90
push 0x471c48
lea ecx, [ebp - 0x30]
call fcn.00401910
jmp 0x405b90
push 0x471c50
lea ecx, [ebp - 0x30]
call fcn.00401910
lea ecx, [ebp - 0x30]
push ecx
lea ecx, [ebp - 0x3c]
call fcn.00410030
push 4
lea edx, [ebp - 0x224]
push edx
lea ecx, [ebp - 0x3c]
call fcn.00410300
mov dword [ebp - 0x248], eax
mov eax, dword [ebp - 0x248]
mov dword [ebp - 0x24c], eax
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x24c]
push ecx
lea ecx, [ebp - 0x30]
call fcn.004110d0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x224]
call fcn.004018f0
lea ecx, [ebp - 0x30]
call fcn.00410070
push str..raw
lea edx, [ebp - 0x30]
push edx
call fcn.00410610
add esp, 8
movzx eax, al
test eax, eax
je 0x405c94
push 0
lea ecx, [ebp - 0x3c]
call fcn.00401d70
push eax
call dword [sym.imp.KERNEL32.dll__lcreat]
mov dword [ebp - 0x214], eax
cmp dword [ebp - 0x214], 0
jl 0x405c8f
mov ecx, dword [ebp - 0x230]
movzx edx, word [ecx + 0x1c8]
mov eax, dword [ebp - 0x230]
movzx ecx, word [eax + 0x1ca]
imul edx, ecx
mov eax, dword [ebp - 0x230]
movzx ecx, byte [eax + 0x1cc]
sub ecx, 1
neg ecx
sbb ecx, ecx
neg ecx
add ecx, 1
imul edx, ecx
mov dword [ebp - 0x218], edx
mov edx, dword [ebp - 0x218]
push edx
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x214]
push ecx
call dword [sym.imp.KERNEL32.dll__lwrite]
mov dword [ebp - 0x21c], eax
mov edx, dword [ebp - 0x214]
push edx
call dword [sym.imp.KERNEL32.dll__lclose]
jmp 0x405d25
push str..jpg
lea eax, [ebp - 0x30]
push eax
call fcn.00410610
add esp, 8
movzx ecx, al
test ecx, ecx
je 0x405cdc
movzx edx, word [ebp - 0x24]
push edx
movzx eax, word [ebp - 0x28]
push eax
mov ecx, dword [ebp - 0x20]
push ecx
push ecx
mov ecx, esp
mov dword [ebp - 0x228], esp
lea edx, [ebp - 0x3c]
push edx
call fcn.004110b0
mov dword [ebp - 0x250], eax
call fcn.00413090
add esp, 0x10
jmp 0x405d25
push str..bmp
lea eax, [ebp - 0x30]
push eax
call fcn.00410610
add esp, 8
movzx ecx, al
test ecx, ecx
je 0x405d25
movzx edx, word [ebp - 0x24]
push edx
movzx eax, word [ebp - 0x28]
push eax
mov ecx, dword [ebp - 0x20]
push ecx
push ecx
mov ecx, esp
mov dword [ebp - 0x22c], esp
lea edx, [ebp - 0x3c]
push edx
call fcn.004110b0
mov dword [ebp - 0x254], eax
mov ecx, dword [ebp - 0x230]
call fcn.00406b40
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x20c]
call fcn.004410f4
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x210]
call fcn.004018f0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x30]
call fcn.004018f0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.004018f0
mov eax, dword [ebp - 0x1c]
push eax
call fcn.00453449
add esp, 4
mov dword [ebp - 0x1c], 0
mov ecx, dword [ebp - 0x20]
push ecx
call fcn.00453449
add esp, 4
mov dword [ebp - 0x20], 0
push 0
push 0xc8
push 2
mov ecx, dword [ebp - 0x230]
call fcn.00410ee0
push 0
push 0x64
push 3
mov ecx, dword [ebp - 0x230]
call fcn.00410ee0
push 1
push 0x3e8
mov ecx, dword [ebp - 0x230]
call fcn.0043f389
mov ecx, eax
call fcn.0043f55c
push 1
push 0x452
mov ecx, dword [ebp - 0x230]
call fcn.0043f389
mov ecx, eax
call fcn.0043f55c
push 0x452
mov ecx, dword [ebp - 0x230]
call fcn.0043f389
mov ecx, eax
call fcn.0043f57d
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x40]
xor ecx, ebp
call fcn.00452556
mov esp, ebp
pop ebp
ret