Function at 0x4105e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4403fb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x830
push esi
mov dword [ebp - 0x438], 0
mov dword [ebp - 0x21c], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 0x430], eax
mov dword [ebp - 0x220], 0
push 0x104
lea ecx, [ebp - 0x42c]
push ecx
mov edx, dword [ebp - 0x430]
push edx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov eax, dword [ebp - 0x430]
push eax
call fcn.0040bdc0
add esp, 4
mov dword [ebp - 0x458], eax
push 1
lea ecx, [ebp - 0x42c]
push ecx
lea ecx, [ebp - 0x454]
call fcn.00413a90
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x454]
call fcn.00413b50
mov ecx, dword [ebp - 0x458]
xor esi, esi
mov dword [ebp - 0x830], eax
mov dword [ebp - 0x82c], edx
mov dword [ebp - 0x838], ecx
mov dword [ebp - 0x834], esi
mov edx, dword [ebp - 0x82c]
cmp edx, dword [ebp - 0x834]
jl 0x410a61
jg 0x4106c0
mov eax, dword [ebp - 0x830]
cmp eax, dword [ebp - 0x838]
jbe 0x410a61
lea ecx, [ebp - 0x454]
call fcn.004097d0
add eax, dword [ebp - 0x458]
mov dword [ebp - 0x45c], eax
mov byte [ebp - 0x5e1], 0
push 0x180
lea ecx, [ebp - 0x5dc]
push ecx
lea edx, [ebp - 0x45c]
push edx
call fcn.0040fdc0
add esp, 0xc
mov eax, dword [ebp - 0x5a0]
and eax, 0x1f
mov dword [ebp - 0x5e0], eax
mov ecx, dword [ebp - 0x5e0]
lea edx, [ebp + ecx*8 - 0x580]
push edx
call fcn.00402bc0
add esp, 4
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x45c]
push ecx
call fcn.0040fe70
add esp, 8
mov dword [ebp - 0x220], eax
lea edx, [ebp - 0x45c]
push edx
call fcn.0040fd30
add esp, 4
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
mov edx, dword [ebp + 0x14]
mov eax, dword [edx]
push eax
mov ecx, dword [ebp + 0x14]
add ecx, 4
push ecx
lea edx, [ebp - 0x45c]
push edx
call fcn.0040fdf0
add esp, 0xc
lea eax, [ebp - 0x45c]
push eax
mov ecx, dword [ebp + 0x18]
push ecx
call fcn.0040fee0
add esp, 8
mov edx, dword [ebp + 0x14]
mov eax, dword [edx + 0x40]
mov dword [ebp - 0x83c], eax
cmp dword [ebp - 0x83c], 0
je 0x410794
jmp 0x4107fb
lea ecx, [ebp - 0x7f4]
mov dword [ebp - 0x5e8], ecx
lea edx, [ebp - 0x5e8]
push edx
call fcn.00404130
add esp, 4
cmp dword [ebp - 0x5e8], 0
je 0x4107f1
mov eax, dword [ebp - 0x5e8]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantInit]
mov dword [ebp - 0x434], eax
lea ecx, [ebp - 0x7f4]
test ecx, ecx
je 0x4107ef
mov edx, dword [ebp - 0x5e8]
push edx
mov eax, dword [ebp + 0xc]
push eax
call fcn.00436111
add esp, 8
mov byte [ebp - 0x5e1], 1
jmp 0x4107f6
call fcn.004105c0
jmp 0x410929
lea ecx, [ebp - 0x45c]
push ecx
call fcn.0040fd30
add esp, 4
mov dword [ebp - 0x7fc], eax
lea edx, [ebp - 0x45c]
push edx
call fcn.0040fd30
add esp, 4
mov dword [ebp - 0x7f8], eax
lea eax, [ebp - 0x800]
push eax
lea ecx, [ebp - 0x45c]
push ecx
call fcn.0040fe70
add esp, 8
mov dword [ebp - 0x804], eax
mov edx, dword [ebp - 0x7f8]
and edx, 0xffff
push edx
mov eax, dword [ebp - 0x7f8]
shr eax, 0x10
push eax
mov ecx, dword [ebp - 0x7fc]
and ecx, 0xffff
push ecx
mov edx, dword [ebp - 0x7fc]
shr edx, 0x10
push edx
push str.flash._d._d._d._d.ocx
lea eax, [ebp - 0x214]
push eax
call fcn.0043612d
add esp, 0x18
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 0x214]
push edx
call fcn.0040abe0
add esp, 8
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x808], eax
cmp dword [ebp - 0x808], 0xffffffff
je 0x41090d
push 0
lea ecx, [ebp - 0x80c]
push ecx
mov edx, dword [ebp - 0x800]
push edx
mov eax, dword [ebp - 0x804]
push eax
mov ecx, dword [ebp - 0x808]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4108fe
mov edx, dword [ebp - 0x80c]
cmp edx, dword [ebp - 0x800]
jne 0x4108fe
mov byte [ebp - 0x5e1], 1
mov eax, dword [ebp - 0x808]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x410929
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x810], eax
cmp dword [ebp - 0x810], 0x20
jne 0x410929
mov byte [ebp - 0x5e1], 1
movzx ecx, byte [ebp - 0x5e1]
test ecx, ecx
je 0x410a41
mov dword [ebp - 0x81c], 0
push 0
lea edx, [ebp - 0x818]
push edx
mov eax, dword [ebp + 0xc]
push eax
call fcn.0040c450
add esp, 0xc
movzx ecx, al
test ecx, ecx
je 0x41096d
mov edx, dword [ebp - 0x818]
shr edx, 0x10
mov dword [ebp - 0x81c], edx
lea eax, [ebp - 0x45c]
push eax
call fcn.004102a0
add esp, 4
mov dword [ebp - 0x824], eax
mov ecx, dword [ebp - 0x824]
push ecx
mov edx, dword [ebp + 0x10]
push edx
call fcn.00436111
add esp, 8
mov eax, dword [ebp - 0x824]
push eax
call fcn.004360af
add esp, 4
mov ecx, dword [ebp + 0x10]
movzx edx, word [ecx]
test edx, edx
jne 0x4109bf
push 0x445bb4
mov eax, dword [ebp + 0x10]
push eax
call fcn.00436111
add esp, 8
lea ecx, [ebp - 0x814]
push ecx
lea edx, [ebp - 0x45c]
push edx
call fcn.0040fe70
add esp, 8
mov dword [ebp - 0x820], eax
cmp dword [ebp - 0x820], 0
je 0x410a3f
mov eax, dword [ebp - 0x81c]
push eax
mov ecx, dword [ebp - 0x814]
push ecx
mov edx, dword [ebp - 0x820]
push edx
call fcn.00410ab0
add esp, 0xc
mov dword [ebp - 0x438], eax
mov eax, dword [ebp - 0x438]
mov dword [ebp - 0x21c], eax
cmp dword [ebp - 0x820], 0
je 0x410a35
mov ecx, dword [ebp - 0x820]
push ecx
call fcn.004360af
add esp, 4
mov dword [ebp - 0x820], 0
mov dword [ebp - 0x820], 0
jmp 0x410a61
cmp dword [ebp - 0x438], 0
je 0x410a57
mov edx, dword [ebp - 0x438]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov dword [ebp - 0x438], 0
cmp dword [ebp - 0x220], 0
je 0x410a79
mov eax, dword [ebp - 0x220]
push eax
call fcn.004360af
add esp, 4
mov ecx, dword [ebp - 0x21c]
mov dword [ebp - 0x828], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x454]
call fcn.00413b10
mov eax, dword [ebp - 0x828]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret