Function at 0x10026490
Capabilities:
Delete file

Disassembly:
push ebp
lea ebp, [esp - 0x60]
sub esp, 0x60
push 0xffffffffffffffff
push 0x1005c31a
mov eax, dword fs:[0]
push eax
sub esp, 0x70
push ebx
push esi
push edi
mov eax, dword [0x10078c14]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, ecx
mov esi, edx
xor edi, edi
mov dword [ebp + 0x5c], edi
mov dword [ebp + 0x38], edi
push edi
push 0xffffffffffffffff
push edi
lea ecx, [ebp - 0x24]
call fcn.1001d290
mov dword [ebp - 4], edi
push 0x1006402c
lea ecx, [ebp + 0x48]
call fcn.10002310
mov byte [ebp - 4], 1
mov dword [ebp + 0x2c], edi
push 0x1006402c
lea ecx, [ebp + 0x44]
call fcn.10002310
mov byte [ebp - 4], 2
push 0x1006402c
lea ecx, [ebp + 0x4c]
call fcn.10002310
mov byte [ebp - 4], 3
push 0x1006402c
lea ecx, [ebp + 0x40]
call fcn.10002310
mov byte [ebp - 4], 4
cmp ebx, 1
jne 0x10026588
lea eax, [ebp + 0x58]
push eax
push esi
call fcn.10013830
mov byte [ebp - 4], 5
push eax
lea ecx, [ebp + 0x48]
call fcn.10003c80
mov byte [ebp - 4], 4
lea ecx, [ebp + 0x58]
call fcn.10002690
mov ebx, dword [esi + 0x20]
mov dword [ebp + 0x54], ebx
mov ecx, dword [esi + 0x24]
mov dword [ebp + 0x58], ecx
push 5
push str.image
lea ecx, [ebp + 0x44]
call fcn.100027e0
push 7
push str.image_1
lea ecx, [ebp + 0x4c]
call fcn.100027e0
push 0xc
push str.IMG_0001.JPG
lea ecx, [ebp + 0x40]
call fcn.100027e0
jmp 0x1002664a
cmp ebx, 2
jne 0x100265eb
lea edx, [ebp + 0x58]
push edx
push esi
call fcn.10024920
mov byte [ebp - 4], 6
push eax
lea ecx, [ebp + 0x48]
call fcn.10003c80
mov byte [ebp - 4], 4
lea ecx, [ebp + 0x58]
call fcn.10002690
mov ebx, dword [esi + 0x40]
mov dword [ebp + 0x54], ebx
mov eax, dword [esi + 0x44]
mov dword [ebp + 0x58], eax
push 5
push str.video
lea ecx, [ebp + 0x44]
call fcn.100027e0
push 7
push str.video_1
lea ecx, [ebp + 0x4c]
call fcn.100027e0
push 0xc
push str.MOV_0001.DAT
lea ecx, [ebp + 0x40]
call fcn.100027e0
jmp 0x1002664a
cmp ebx, 3
jne 0x10026d1d
lea ecx, [ebp + 0x58]
push ecx
push esi
call fcn.100248b0
mov byte [ebp - 4], 7
push eax
lea ecx, [ebp + 0x48]
call fcn.10003c80
mov byte [ebp - 4], 4
lea ecx, [ebp + 0x58]
call fcn.10002690
mov ebx, dword [esi + 0x30]
mov dword [ebp + 0x54], ebx
mov edx, dword [esi + 0x34]
mov dword [ebp + 0x58], edx
push str.audio
lea ecx, [ebp + 0x44]
call fcn.10002760
push str.audio_1
lea ecx, [ebp + 0x4c]
call fcn.10002760
push str.SND_0001.DAT
lea ecx, [ebp + 0x40]
call fcn.10002760
mov byte [ebp - 4], 8
push 0x10
call fcn.100324ab
add esp, 4
mov dword [ebp + 8], eax
mov byte [ebp - 4], 9
test eax, eax
je 0x1002666c
mov ecx, eax
call fcn.10033c42
jmp 0x1002666e
xor eax, eax
mov byte [ebp - 4], 8
mov dword [ebp + 0x38], eax
mov edx, dword [eax]
lea ecx, [ebp - 0x24]
push ecx
push 0x80010
mov ecx, dword [ebp + 0x48]
push ecx
mov ecx, eax
mov edx, dword [edx + 0x20]
call edx
test eax, eax
jne 0x100266a8
mov edi, dword [ebp - 0x1c]
sub edi, 2
neg edi
sbb edi, edi
and edi, 0xfffdfffd
add edi, 0x88028025
mov dword [ebp + 0x5c], edi
mov dword [ebp - 4], 4
jmp 0x10026708
test edi, edi
jne 0x10026758
mov eax, dword [ebp + 0x74]
cmp eax, ebx
jbe 0x10026718
mov eax, ebx
mov dword [ebp + 0x74], eax
mov byte [ebp - 4], 0xb
push eax
call fcn.100324d6
add esp, 4
mov dword [ebp + 0x2c], eax
test eax, eax
jne 0x10026734
mov edi, 0x88008009
mov dword [ebp + 0x5c], edi
mov dword [ebp - 4], 4
jmp 0x10026758
mov dword [ebp + 0x24], 0
test edi, edi
jne 0x10026c26
xor eax, eax
mov esi, dword [ebp + 0x74]
mov ecx, esi
add ecx, ebx
mov edx, eax
adc edx, dword [ebp + 0x58]
add ecx, 0xffffffff
adc edx, 0xffffffff
push eax
push esi
push edx
push ecx
call fcn.10049700
mov dword [ebp + 0x18], eax
xor ebx, ebx
mov dword [ebp + 0x28], ebx
mov dword [ebp + 0x20], ebx
mov byte [ebp - 4], 0xd
push 0x1006402c
lea ecx, [ebp + 0x1c]
call fcn.10002310
mov byte [ebp - 4], 0xe
push 0x1007d5b0
lea eax, [ebp + 0x58]
push eax
call fcn.1001fac0
mov byte [ebp - 4], 0xf
lea ecx, [ebp + 0x3c]
call fcn.100026f0
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0x34]
call fcn.10033c42
mov byte [ebp - 4], 0x11
mov byte [ebp - 4], 0x12
mov dword [ebp + 0x10], ebx
push 0x400
lea ecx, [ebp - 0x7c]
call fcn.1003598e
mov byte [ebp - 4], 0x13
cmp esi, 0xa00000
jbe 0x10026844
push 0x1006402c
lea ecx, [ebp + 0x30]
call fcn.10002310
mov byte [ebp - 4], 0x14
lea edx, [ebp + 0x3c]
lea ecx, [ebp + 0x30]
call fcn.10030110
cmp al, 1
sete bl
mov byte [ebp - 4], 0x13
lea ecx, [ebp + 0x30]
call fcn.10002690
test bl, bl
je 0x1002683a
push edi
push 0x1002
mov ecx, dword [ebp + 0x3c]
push ecx
lea ecx, [ebp - 0x34]
call fcn.10034015
test eax, eax
je 0x1002683a
lea esi, [ebp - 0x34]
jmp 0x10026847
mov edi, 0x88008022
jmp 0x10026b21
lea esi, [ebp - 0x7c]
mov dword [ebp + 0x10], esi
mov dword [ebp + 0x34], 0
mov ebx, dword [ebp + 0x68]
mov edx, dword [ebp + 0x34]
cmp edx, dword [ebp + 0x18]
jae 0x10026b24
mov ecx, esi
call fcn.1001ffc0
lea eax, [ebp + 0x24]
push eax
mov ecx, dword [ebx + 0x10]
call sym.CCL.dll_public:_bool___thiscall_CCLApiResult::CreateResponseXML_void___
test al, al
jne 0x1002688f
mov edi, 0x8800800f
mov dword [ebp + 0x5c], edi
mov edx, dword [ebx]
push edi
mov ecx, ebx
mov eax, dword [edx + 0xc]
call eax
add dword [ebp + 0x34], 1
jmp 0x10026854
push str.xmlns:caphttp:__www.imagegateway.net_cap_xmlns:nbehttp:__www.imagegateway.net_nbe_xmlns:registrationhttp:__www.imagegateway.net_registration_xmlns:opahttp:__www.imagegateway.net_opa_xmlns:xsdhttp:__www.w3.org_2001_XMLSchema_instance
lea ecx, [ebp + 0x30]
call fcn.10002310
mov byte [ebp - 4], 0x15
lea ecx, [ebp + 0x30]
push ecx
mov edx, dword [ebp + 0x24]
push edx
call fcn.10032080
add esp, 8
test eax, eax
sete bl
mov byte [ebp - 4], 0x13
lea ecx, [ebp + 0x30]
call fcn.10002690
test bl, bl
je 0x10026ad7
cmp dword [ebp + 0x28], 0
jne 0x1002692f
lea eax, [ebp + 0x28]
push eax
mov ebx, dword [ebp + 0x68]
mov ecx, dword [ebx + 0x10]
call sym.CCL.dll_public:_bool___thiscall_CCLApiResult::CreateRequestXML_void___
test al, al
je 0x10026b1c
push str.opa:req_0285
lea ecx, [ebp + 8]
call fcn.10002310
mov byte [ebp - 4], 0x16
mov ecx, dword [ebp + 0x18]
push ecx
mov edx, dword [ebp + 0x34]
add edx, 1
push edx
lea ecx, [ebp + 0x44]
push ecx
mov edx, dword [ebp + 0x70]
push edx
mov ecx, dword [ebp + 0x6c]
push ecx
push eax
lea edi, [ebp + 0x20]
mov edx, dword [ebp + 0x28]
mov ecx, ebx
call fcn.100281d0
mov edi, eax
mov dword [ebp + 0x5c], edi
mov byte [ebp - 4], 0x13
lea ecx, [ebp + 8]
call fcn.10002690
jmp 0x10026944
lea edx, [ebp + 0x20]
push edx
mov eax, dword [ebp + 0x34]
add eax, 1
push eax
call fcn.10028110
mov edi, eax
mov dword [ebp + 0x5c], edi
test edi, edi
jne 0x10026b24
push str.message.xml
lea ecx, [ebp]
call fcn.10002310
mov byte [ebp - 4], 0x17
push str.text_xml
lea ecx, [ebp + 0xc]
call fcn.10002310
mov byte [ebp - 4], 0x18
push str.message
lea ecx, [ebp + 4]
call fcn.10002310
mov byte [ebp - 4], 0x19
lea ecx, [ebp]
push ecx
lea edx, [ebp + 0xc]
push edx
lea eax, [ebp + 4]
push eax
mov ecx, dword [ebp + 0x78]
push ecx
push esi
mov ecx, dword [ebp + 0x28]
call fcn.1001ef90
test eax, eax
setne bl
mov byte [ebp - 4], 0x18
lea ecx, [ebp + 4]
call fcn.10002690
mov byte [ebp - 4], 0x17
lea ecx, [ebp + 0xc]
call fcn.10002690
mov byte [ebp - 4], 0x13
lea ecx, [ebp]
call fcn.10002690
test bl, bl
jne 0x10026b1c
mov byte [ebp - 4], 0x1a
mov ecx, dword [ebp + 0x38]
mov edx, dword [ecx]
mov edi, dword [ebp + 0x74]
push edi
mov eax, dword [ebp + 0x2c]
push eax
mov edx, dword [edx + 0x34]
call edx
mov ebx, eax
cmp edi, ebx
jbe 0x100269f9
mov eax, dword [esi]
mov ecx, esi
mov edx, dword [eax + 0xc]
call edx
mov edi, dword [esi]
push edx
push eax
mov ecx, esi
mov eax, dword [edi + 0x2c]
call eax
push ebx
push 0x10064800
lea ecx, [ebp + 0x1c]
push ecx
call fcn.100022f0
add esp, 0xc
push str.application_octet_stream
lea ecx, [ebp + 0x14]
call fcn.10002310
mov byte [ebp - 4], 0x1b
push 1
lea edx, [ebp + 0x40]
push edx
lea eax, [ebp + 0x14]
push eax
lea ecx, [ebp + 0x1c]
push ecx
push 0
lea edx, [ebp + 0x4c]
push edx
mov edi, dword [ebp + 0x78]
mov ecx, edi
mov edx, esi
call fcn.1001f1a0
test eax, eax
setne byte [ebp + 0x53]
mov byte [ebp - 4], 0x1a
lea ecx, [ebp + 0x14]
call fcn.10002690
cmp byte [ebp + 0x53], 0
je 0x10026a65
mov edi, 0x8800800f
mov dword [ebp + 0x5c], edi
mov byte [ebp - 4], 0x13
jmp 0x10026b24
mov eax, dword [esi]
push ebx
mov ecx, dword [ebp + 0x2c]
push ecx
mov ecx, esi
mov edx, dword [eax + 0x38]
call edx
mov eax, dword [ebp + 0x58]
mov ecx, dword [eax - 0xc]
mov edx, dword [esi]
push ecx
push eax
mov ecx, esi
mov eax, dword [edx + 0x38]
call eax
mov dword [ebp - 4], 0x13
mov ecx, edi
mov edx, esi
call fcn.1001f4e0
test eax, eax
jne 0x10026b1c
mov edx, dword [esi]
mov ecx, esi
mov eax, dword [edx + 0x30]
call eax
push edx
push eax
mov ecx, dword [ebp + 0x68]
push ecx
push edi
mov edx, dword [ebp + 0x24]
push edx
push esi
lea eax, [ecx + 0xc4c]
push eax
call fcn.1000dbc0
mov edi, eax
mov dword [ebp + 0x5c], edi
test edi, edi
jne 0x10026b24
mov ecx, dword [ebp + 0x24]
push ecx
mov ecx, dword [ebp + 0x68]
call fcn.1000e7e0
mov edi, eax
mov dword [ebp + 0x5c], edi
mov ebx, dword [ebp + 0x68]
mov edx, dword [ebx]
push edi
mov ecx, ebx
mov eax, dword [edx + 0xc]
call eax
add dword [ebp + 0x34], 1
jmp 0x10026854
mov edi, 0x8800800f
mov dword [ebp + 0x5c], edi
mov byte [ebp - 4], 0x12
lea ecx, [ebp - 0x7c]
call fcn.10035cd0
mov dword [ebp - 4], 0x11
jmp 0x10026b83
mov ecx, dword [ebp + 0x3c]
cmp dword [ecx - 0xc], 0
je 0x10026b9e
lea ecx, [ebp - 0x34]
call fcn.10033be0
mov edx, dword [ebp + 0x3c]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0x34]
call fcn.10033d16
mov byte [ebp - 4], 0xf
mov eax, dword [ebp + 0x3c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10026bcd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0xe
mov eax, dword [ebp + 0x58]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10026bf0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0xd
mov eax, dword [ebp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10026c13
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 4
mov eax, dword [ebp + 0x20]
test eax, eax
je 0x10026c26
mov ecx, dword [eax]
push eax
mov edx, dword [ecx + 8]
call edx
mov eax, dword [ebp + 0x2c]
test eax, eax
je 0x10026c36
push eax
call fcn.100324db
add esp, 4
mov esi, dword [ebp + 0x38]
test esi, esi
je 0x10026c51
mov eax, dword [esi]
mov ecx, esi
mov edx, dword [eax + 0x4c]
call edx
mov eax, dword [esi]
push 1
mov ecx, esi
mov edx, dword [eax + 4]
call edx
mov ecx, dword [ebp + 0x68]
mov eax, dword [ecx]
push edi
mov edx, dword [eax + 0xc]
call edx
mov byte [ebp - 4], 3
mov eax, dword [ebp + 0x40]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or esi, 0xffffffff
mov edx, esi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10026c81
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 2
mov eax, dword [ebp + 0x4c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, esi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10026ca3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 1
mov eax, dword [ebp + 0x44]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, esi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10026cc5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0
mov eax, dword [ebp + 0x48]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, esi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10026ce7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], esi
mov dword [ebp - 0x24], vtable.CFileException.0
mov dword [ebp - 4], esi
lea ecx, [ebp - 0x14]
mov dword [ebp + 0x68], ecx
mov dword [ebp - 4], esi
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
lock xadd dword [edx], esi
dec esi
test esi, esi
jg 0x10026d19
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
jmp 0x10026d61
mov byte [ebp - 4], 3
lea ecx, [ebp + 0x40]
call fcn.10002690
mov byte [ebp - 4], 2
lea ecx, [ebp + 0x4c]
call fcn.10002690
mov byte [ebp - 4], 1
lea ecx, [ebp + 0x44]
call fcn.10002690
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x48]
call fcn.10002690
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.1001d1d0
mov eax, 0xffff8002
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add ebp, 0x60
mov esp, ebp
pop ebp
ret 0x14