Function at 0x4140ed
Capabilities:
Accept command line arguments
Write file on windows

Disassembly:
push 0x130
mov eax, 0x46be1b
call fcn.0042a318
mov esi, dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push 0x479e34
push eax
call fcn.0041fdb4
pop ecx
pop ecx
test eax, eax
je 0x414195
push 9
pop ecx
lea eax, [ebp - 0x38]
mov esi, str.._partner_xml.xml
lea edi, [ebp - 0x38]
rep movsd dword es:[edi], dword [esi]
push eax
call fcn.00421679
pop ecx
lea ecx, [ebp - 0x50]
call fcn.004144eb
xor ebx, ebx
cmp dword [ebp - 0x40], ebx
je 0x414185
push 0x479e7c
lea eax, [ebp - 0x38]
mov dword [ebp - 0x58], ebx
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.00421682
add esp, 0xc
cmp dword [ebp - 0x58], ebx
je 0x414185
push dword [ebp - 0x58]
cmp dword [ebp - 0x3c], 0x10
lea eax, [ebp - 0x50]
push 1
push dword [ebp - 0x40]
cmovae eax, dword [ebp - 0x50]
push eax
call fcn.004218ea
push dword [ebp - 0x58]
call fcn.00421a1f
push dword [ebp - 0x58]
call fcn.00421bc8
add esp, 0x18
push ebx
push 1
lea ecx, [ebp - 0x50]
call fcn.004040de
jmp 0x414338
push 2
pop edi
push edi
xor ebx, ebx
push ebx
call dword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
jns 0x4141e7
push ecx
push ecx
lea ecx, [ebp - 0x13c]
call fcn.0040fe2b
lea eax, [ebp - 0x13c]
mov dword [ebp - 4], ebx
test eax, eax
je 0x4141d0
mov edx, str.Cant_initialize_COM.
lea ecx, [ebp - 0x12c]
call fcn.00409c8e
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x13c]
call fcn.0040fba3
push 0xfffffffffffffffb
pop eax
jmp 0x41433a
mov dl, 1
mov ecx, 0x479eb0
call fcn.00405132
push ebx
lea eax, [ebp - 0x88]
mov dword [ebp - 0x88], 1
push eax
lea eax, [ebp - 0x5c]
mov dword [ebp - 0x84], ebx
push eax
mov dword [ebp - 0x80], ebx
mov dword [ebp - 0x7c], ebx
mov dword [ebp - 0x5c], ebx
call dword [sym.imp.gdiplus.dll_GdiplusStartup]
test eax, eax
je 0x414266
push ecx
push ecx
lea ecx, [ebp - 0x13c]
call fcn.0040fe2b
lea eax, [ebp - 0x13c]
mov dword [ebp - 4], 1
test eax, eax
je 0x414250
mov edx, 0x479eb4
lea ecx, [ebp - 0x12c]
call fcn.00409c8e
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x13c]
call fcn.0040fba3
push 0xfffffffffffffffc
jmp 0x4141e1
mov dword [ebp - 0x58], ebx
mov dword [ebp - 4], edi
push 0x1c8
mov byte [ebp - 4], 3
call fcn.0041f72a
pop ecx
mov dword [ebp - 0x8c], eax
mov byte [ebp - 4], 4
test eax, eax
je 0x414295
push esi
mov ecx, eax
call fcn.0040a8dc
mov esi, eax
jmp 0x4142a4
mov esi, ebx
jmp 0x4142a4
test esi, esi
je 0x414315
push 7
pop ecx
xor eax, eax
lea edi, [ebp - 0x78]
rep stosd dword es:[edi], eax
mov edi, dword [sym.imp.USER32.dll_GetMessageW]
jmp 0x414308
cmp dword [ebp - 0x74], 0x100
jne 0x4142cd
cmp dword [ebp - 0x70], 0x1b
mov byte [ebp - 0x51], 1
je 0x4142d0
mov byte [ebp - 0x51], bl
push dword [ebp - 0x78]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4142ee
lea eax, [ebp - 0x78]
push eax
push dword [ebp - 0x78]
call dword [sym.imp.USER32.dll_IsDialogMessageW]
test eax, eax
jne 0x414302
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
cmp byte [ebp - 0x51], 0
jne 0x414315
push ebx
push ebx
push ebx
lea eax, [ebp - 0x78]
push eax
call edi
test eax, eax
jne 0x4142ba
or dword [ebp - 4], 0xffffffff
test esi, esi
je 0x414325
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax]
push dword [ebp - 0x5c]
call dword [sym.imp.gdiplus.dll_GdiplusShutdown]
call fcn.0040fc0f
call fcn.004050ee
xor eax, eax
call fcn.0042a26a
ret 0x10