Function at 0x40113c
Capabilities:
Write file on windows

Disassembly:
push 0x90
mov eax, 0x410b0c
call fcn.004018cc
mov dword [ebp - 0x84], ecx
xor esi, esi
mov dword [ebp - 0x90], esi
mov dword [ebp - 0x8c], esi
mov dword [ebp - 4], esi
xor ebx, ebx
inc ebx
mov byte [ebp - 4], bl
push 2
push esi
call dword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
js 0x4013d7
mov dword [0x414004], esi
mov dword [ebp - 0x78], esi
mov dword [ebp - 0x74], esi
mov byte [ebp - 4], 2
mov byte [ebp - 4], 3
mov byte [ebp - 4], 4
mov byte [ebp - 4], 5
lea eax, [ebp - 0x94]
push eax
lea ecx, [ebp - 0x78]
call fcn.004020e2
mov byte [ebp - 4], 6
push dword [eax]
call fcn.00401aeb
test eax, eax
js 0x4013d7
mov byte [ebp - 4], 7
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x94]
cmp dword [eax], esi
je 0x4011cc
mov dword [eax + 4], ebx
mov dword [ebp - 0x64], esi
mov dword [ebp - 0x60], esi
mov byte [ebp - 4], 8
mov byte [ebp - 4], 9
mov byte [ebp - 4], 0xa
mov byte [ebp - 4], 0xb
lea eax, [ebp - 0x98]
push eax
lea ecx, [ebp - 0x64]
call fcn.004020e2
mov byte [ebp - 4], 0xc
push dword [eax]
push ebx
push esi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
js 0x4013d7
mov byte [ebp - 4], 0xd
mov byte [ebp - 4], 0xb
mov eax, dword [ebp - 0x98]
cmp dword [eax], esi
je 0x40121c
mov dword [eax + 4], ebx
push esi
push esi
push esi
push dword [ebp - 0x78]
push 0x401980
push dword [ebp - 0x64]
call dword [sym.imp.ole32.dll_CoMarshalInterface]
test eax, eax
js 0x4013d7
cmp dword [ebp - 0x74], 0
je 0x40124e
mov ecx, dword [ebp - 0x78]
test ecx, ecx
je 0x40124b
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [ebp - 0x74], esi
mov eax, dword [ebp - 0x64]
mov ecx, dword [eax]
push ebx
lea edx, [ebp - 0x5c]
push edx
push eax
call dword [ecx + 0x30]
test eax, eax
js 0x4013d7
mov ecx, dword [ebp - 0x54]
mov dword [ebp - 0x68], ecx
call fcn.0040193c
mov edi, eax
mov dword [ebp - 0x70], edi
mov ebx, esi
mov dword [ebp - 0x6c], ebx
test edi, edi
je 0x401283
xor ebx, ebx
inc ebx
mov dword [ebp - 0x6c], ebx
mov byte [ebp - 4], 0xe
mov byte [ebp - 4], 0xf
mov byte [ebp - 4], 0x10
mov byte [ebp - 4], 0x11
mov eax, dword [ebp - 0x64]
mov ecx, dword [eax]
push esi
push esi
push esi
push esi
push eax
call dword [ecx + 0x14]
mov eax, dword [ebp - 0x64]
mov ecx, dword [eax]
lea edx, [ebp - 0x80]
push edx
push dword [ebp - 0x68]
push edi
push eax
call dword [ecx + 0xc]
test eax, eax
js 0x4013d7
mov eax, dword [ebp - 0x80]
cmp eax, dword [ebp - 0x68]
jne 0x40367c
cmp dword [ebp - 0x60], 0
je 0x4012db
mov ecx, dword [ebp - 0x64]
test ecx, ecx
je 0x4012d8
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [ebp - 0x60], esi
push esi
lea eax, [ebp - 0x88]
push eax
push 4
lea eax, [ebp - 0x68]
push eax
push dword [ebp - 0x84]
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
call edi
test eax, eax
je 0x4013de
cmp dword [ebp - 0x88], 4
jne 0x40367c
push esi
lea eax, [ebp - 0x88]
push eax
push dword [ebp - 0x68]
push dword [ebp - 0x70]
push dword [ebp - 0x84]
call edi
test eax, eax
je 0x4013de
mov eax, dword [ebp - 0x88]
cmp eax, dword [ebp - 0x68]
jne 0x40367c
push dword [ebp - 0x84]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [0x4140b0]
call dword [sym.imp.KERNEL32.dll_SetEvent]
test eax, eax
je 0x4013de
call fcn.00401008
test eax, eax
js 0x4013d7
call dword [sym.imp.ole32.dll_CoUninitialize]
mov byte [ebp - 4], 0x12
mov byte [ebp - 4], 0x13
mov byte [ebp - 4], 0x14
mov byte [ebp - 4], 0xb
test ebx, ebx
je 0x401387
mov ecx, dword [ebp - 0x70]
call fcn.004010b8
mov dword [ebp - 0x6c], esi
mov byte [ebp - 4], 0x15
mov byte [ebp - 4], 0x16
mov byte [ebp - 4], 0x17
mov byte [ebp - 4], 5
cmp dword [ebp - 0x60], 0
jne 0x403683
mov byte [ebp - 4], 0x18
mov byte [ebp - 4], 0x19
mov byte [ebp - 4], 0x1a
mov byte [ebp - 4], 1
cmp dword [ebp - 0x74], 0
jne 0x403698
mov dword [ebp - 4], esi
or dword [ebp - 4], 0xffffffff
test byte [ebp - 0x90], 2
jne 0x403746
mov eax, esi
call fcn.0040111e
ret
mov ecx, eax
jmp 0x403677
call fcn.0040b689
int3
call fcn.0040b561
mov ecx, 0x80004005
jmp 0x403677
mov ecx, dword [ebp - 0x64]
test ecx, ecx
je 0x403690
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [ebp - 0x60], esi
jmp 0x4013a1
mov ecx, dword [ebp - 0x78]
test ecx, ecx
je 0x4036a5
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [ebp - 0x74], esi
jmp 0x4013bb
call fcn.0040cddd
jmp 0x4013cf