Function at 0x1d1bc20
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1e300e3
mov eax, dword fs:[0]
push eax
sub esp, 0x90
mov eax, dword [0x1e94008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x24], esi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x1c], 0
cmp byte [esi], 0
jne 0x1d1bc75
lea ecx, [esi + 0xc]
call fcn.01d1cad0
mov byte [esi + 1], 0
mov al, 1
jmp 0x1d1c218
mov eax, dword [esi + 4]
test eax, eax
je 0x1d1bcac
cmp byte [eax], 0
je 0x1d1bcac
test eax, eax
mov dword [ebp - 0x20], 0
mov ecx, 0x1e3c4c9
mov dword [ebp - 0x1c], 0
cmovne ecx, eax
push ecx
lea ecx, [ebp - 0x20]
call fcn.01d1f420
lea eax, [ebp - 0x20]
mov ebx, 4
jmp 0x1d1bcd7
push edi
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
call fcn.01d1f420
lea eax, [ebp - 0x84]
push eax
lea ecx, [ebp - 0x20]
call fcn.01d1fc20
mov ebx, 3
mov eax, dword [eax]
mov ecx, 0x1e3c4c9
test eax, eax
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x78], 0
cmovne ecx, eax
push ecx
lea ecx, [ebp - 0x7c]
call fcn.01d1f420
mov dword [ebp - 4], 0
test bl, 4
je 0x1d1bd19
mov eax, dword [ebp - 0x20]
and ebx, 0xfffffffb
test eax, eax
je 0x1d1bd19
push eax
call fcn.01e06279
add esp, 4
test bl, 2
je 0x1d1bd45
mov eax, dword [ebp - 0x84]
and ebx, 0xfffffffd
test eax, eax
je 0x1d1bd3e
push eax
call fcn.01e06279
add esp, 4
mov dword [ebp - 0x84], 0
mov dword [ebp - 0x80], 0
test bl, 1
je 0x1d1bd5a
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x1d1bd5a
push eax
call fcn.01e06279
add esp, 4
push 0x1e41450
lea ecx, [ebp - 0x7c]
call fcn.01d1f5a0
push 0x1e4145c
lea eax, [ebp - 0x84]
push eax
lea ecx, [ebp - 0x7c]
call fcn.01d1fbb0
push eax
lea ecx, [ebp - 0x7c]
call fcn.01d1f510
mov eax, dword [ebp - 0x84]
test eax, eax
je 0x1d1bd97
push eax
call fcn.01e06279
add esp, 4
lea ecx, [ebp - 0x7c]
call fcn.01d1fdf0
xor eax, eax
mov byte [ebp - 0x18], 0
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x17], eax
mov word [ebp - 0x13], ax
mov byte [ebp - 0x11], al
lea edx, [eax + 8]
call fcn.01d14950
cmp dword [0x1ea6ebc], 0
jne 0x1d1bdd2
call fcn.01d140d0
mov dword [0x1ea6ebc], 1
xor ecx, ecx
mov dword [ebp - 0x88], 1
mov eax, 8
mov dword [ebp - 0x84], 8
mov edx, 0xc
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.01e0626e
add esp, 4
mov dword [ebp - 0x80], eax
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x88]
call fcn.01d14760
mov dword [ebp - 0x74], 1
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x54], method.CImportImageDialog.virtual_184
mov dword [ebp - 0x50], fcn.01d1e270
push 1
lea ecx, [ebp - 0x74]
mov byte [ebp - 4], 3
call fcn.01d1e320
push 0xd
lea ecx, [ebp - 0x74]
call fcn.01d1ea00
mov edx, edi
mov dword [ebp - 0x1c], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.01d14ea0
test al, al
mov eax, dword [ebp - 0x1c]
je 0x1d1be8e
not eax
push eax
lea ecx, [ebp - 0x74]
call fcn.01d1ea00
mov ebx, dword [ebp - 0x24]
lea ecx, [ebp - 0x74]
push dword [ebx + 0x24]
call fcn.01d1e960
push dword [ebx + 0x38]
lea eax, [ebx + 0xc]
push 0x1c
mov ecx, eax
mov dword [ebp - 0x1c], eax
call fcn.01d1ce50
mov edi, eax
cmp edi, 0xffffffff
je 0x1d1bf64
mov eax, dword [ebx + 0x38]
lea esi, [edi*8]
sub esi, edi
mov ecx, 0x1e3c4c9
mov eax, dword [eax + esi*4 + 0x10]
test eax, eax
cmovne ecx, eax
push ecx
lea ecx, [ebp - 0x74]
call fcn.01d1e0c0
mov eax, dword [ebx + 0x38]
mov eax, dword [eax + esi*4 + 0x18]
mov esi, dword [eax + 0x14]
mov ebx, dword [eax + 4]
test esi, esi
jle 0x1d1bf46
test byte [ebp - 0x56], 1
jne 0x1d1bf46
test byte [ebp - 0x55], 8
jne 0x1d1bf46
mov eax, dword [ebp - 0x6c]
mov ecx, dword [ebp - 0x60]
sub eax, ecx
cmp esi, eax
jle 0x1d1bf22
push esi
lea ecx, [ebp - 0x74]
call dword [ebp - 0x50]
test al, al
jne 0x1d1bf1f
or byte [ebp - 0x56], 1
jmp 0x1d1bf46
mov ecx, dword [ebp - 0x60]
mov eax, dword [ebp - 0x70]
add eax, ecx
cmp ebx, eax
je 0x1d1bf39
push esi
push ebx
push eax
call fcn.01e27b10
mov ecx, dword [ebp - 0x60]
add esp, 0xc
add ecx, esi
mov dword [ebp - 0x60], ecx
lea ecx, [ebp - 0x74]
call fcn.01d1e2c0
mov esi, dword [ebp - 0x1c]
mov ecx, esi
push dword [esi + 0x2c]
push 0x1c
push edi
call fcn.01d1ce90
mov ebx, dword [ebp - 0x24]
mov edi, eax
cmp edi, 0xffffffff
jne 0x1d1bec2
mov ecx, dword [ebp - 0x60]
mov eax, ecx
mov edi, ecx
mov dword [ebp - 0x24], edi
and eax, 0x80000007
jns 0x1d1bf7a
dec eax
or eax, 0xfffffff8
inc eax
je 0x1d1bfdc
nop dword [eax]
mov dl, byte [ebp - 0x55]
test dl, 1
je 0x1d1bfbf
test ecx, ecx
je 0x1d1bfbf
mov eax, dword [ebp - 0x70]
cmp byte [eax + ecx - 1], 0xa
sete al
test al, al
je 0x1d1bfbf
test dl, 0x10
je 0x1d1bfa4
xor esi, esi
jmp 0x1d1bfa8
movzx esi, word [ebp - 0x58]
add esi, 0xffffffff
js 0x1d1bfbf
nop dword [eax]
push 9
lea ecx, [ebp - 0x74]
call fcn.01d1eec0
sub esi, 1
jns 0x1d1bfb0
push 0
lea ecx, [ebp - 0x74]
call fcn.01d1eec0
mov ecx, dword [ebp - 0x60]
mov eax, ecx
and eax, 0x80000007
jns 0x1d1bfda
dec eax
or eax, 0xfffffff8
inc eax
jne 0x1d1bf80
mov esi, dword [ebp - 0x70]
test ecx, ecx
je 0x1d1c008
lea edi, [ecx - 1]
shr edi, 3
inc edi
nop word [eax + eax]
push esi
push esi
lea ecx, [ebp - 0x88]
call fcn.01d14290
add esi, 8
sub edi, 1
jne 0x1d1bff0
mov edi, dword [ebp - 0x24]
mov dword [ebp - 0x4c], 1
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x2c], method.CImportImageDialog.virtual_184
mov dword [ebp - 0x28], fcn.01d1e270
push 0
push 0x334d454d
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 5
call fcn.01d1e3a0
test byte [ebp - 0x2e], 1
jne 0x1d1c0b5
test byte [ebp - 0x2d], 8
jne 0x1d1c0b5
mov eax, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x38]
sub eax, ecx
cmp eax, 8
jge 0x1d1c08f
push 8
lea ecx, [ebp - 0x4c]
call dword [ebp - 0x28]
test al, al
jne 0x1d1c08c
or byte [ebp - 0x2e], 1
jmp 0x1d1c0b5
mov ecx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x48]
lea edx, [ebp - 0x18]
add eax, ecx
cmp edx, eax
je 0x1d1c0a7
movq xmm0, qword [ebp - 0x18]
movq qword [eax], xmm0
mov ecx, dword [ebp - 0x38]
add ecx, 8
mov dword [ebp - 0x38], ecx
lea ecx, [ebp - 0x4c]
call fcn.01d1e2c0
push edi
lea ecx, [ebp - 0x4c]
call fcn.01d1e960
mov esi, dword [ebp - 0x60]
mov edi, dword [ebp - 0x70]
test esi, esi
jle 0x1d1c118
test byte [ebp - 0x2e], 1
jne 0x1d1c118
test byte [ebp - 0x2d], 8
jne 0x1d1c118
mov eax, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x38]
sub eax, ecx
cmp esi, eax
jle 0x1d1c0f4
push esi
lea ecx, [ebp - 0x4c]
call dword [ebp - 0x28]
test al, al
jne 0x1d1c0f1
or byte [ebp - 0x2e], 1
jmp 0x1d1c118
mov ecx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x48]
add eax, ecx
cmp edi, eax
je 0x1d1c10b
push esi
push edi
push eax
call fcn.01e27b10
mov ecx, dword [ebp - 0x38]
add esp, 0xc
add ecx, esi
mov dword [ebp - 0x38], ecx
lea ecx, [ebp - 0x4c]
call fcn.01d1e2c0
mov esi, dword [ebp - 0x7c]
mov ecx, 0x1e3c4c9
test esi, esi
mov dword [ebp - 0x98], 0
mov eax, 0x1e70c8e
mov dword [ebp - 0x94], 0
cmovne ecx, esi
mov word [ebp - 0x90], 0
test ecx, ecx
mov byte [ebp - 0x8e], 0
push 0x1e41470
cmovne eax, ecx
mov dword [ebp - 0x8c], 4
lea ecx, [ebp - 0x9c]
mov dword [ebp - 0x9c], eax
call fcn.01d0d980
push eax
call fcn.01e0d942
add esp, 8
lea ecx, [ebp - 0x9c]
mov edi, eax
call fcn.01d0da20
test edi, edi
jne 0x1d1c191
xor bl, bl
jmp 0x1d1c1b6
push edi
push dword [ebp - 0x38]
mov byte [ebx + 1], 0
push 1
push dword [ebp - 0x48]
call fcn.01e0de2f
push edi
call fcn.01e0df09
add esp, 0x14
lea ecx, [ebx + 0xc]
call fcn.01d1cad0
mov bl, 1
cmp dword [ebp - 0x40], 0
jl 0x1d1c1da
mov eax, dword [ebp - 0x48]
test eax, eax
je 0x1d1c1d3
push eax
call fcn.01e06279
add esp, 4
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
cmp dword [ebp - 0x68], 0
jl 0x1d1c1fe
mov eax, dword [ebp - 0x70]
test eax, eax
je 0x1d1c1f7
push eax
call fcn.01e06279
add esp, 4
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x6c], 0
lea ecx, [ebp - 0x88]
call fcn.01d14230
test esi, esi
je 0x1d1c216
push esi
call fcn.01e06279
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.01e029b1
mov esp, ebp
pop ebp
ret 4