Function at 0x4081c2
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x433467
call fcn.00427498
sub esp, 0x8b4
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov dword [ebp - 0x18], esi
cmp dword [esi], ebx
je 0x4081ea
mov eax, 0x8000ffff
jmp 0x4085aa
lea ecx, [ebp - 0x7c]
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ebx
call fcn.00408bae
mov ecx, 0x208
xor eax, eax
lea edi, [ebp - 0x8bf]
mov byte [ebp - 0x8c0], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push ebx
add esi, 8
push 0x43d2bc
push 7
push ebx
mov ecx, esi
mov dword [ebp - 4], ebx
stosb byte es:[edi], al
call fcn.00408ee3
test eax, eax
mov edi, 0x43d2ac
je 0x40824b
push ebx
push edi
push 6
push ebx
mov ecx, esi
call fcn.00408ee3
test eax, eax
jne 0x40826a
mov ecx, esi
call fcn.00407fdf
push dword [esi + 4]
lea eax, [ebp - 0x8c0]
push 0x43d2a0
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push ebx
push edi
push 6
push ebx
mov ecx, esi
call fcn.00408ee3
neg eax
sbb al, al
inc al
mov byte [ebp - 0xd], al
je 0x4082c0
push 0x128
call fcn.004274b7
mov edi, eax
pop ecx
mov dword [ebp - 0x28], edi
cmp edi, ebx
mov byte [ebp - 4], 1
je 0x4082b6
push ebx
push ebx
push ebx
push ebx
push 0x7530
push 0x43d294
mov ecx, edi
call fcn.00408604
mov dword [edi], 0x436554
jmp 0x4082b8
xor edi, edi
mov byte [ebp - 4], bl
mov dword [ebp - 0x1c], edi
jmp 0x4082f5
push 0x130
call fcn.004274b7
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, ebx
mov byte [ebp - 4], 2
je 0x4082ed
push ebx
push ebx
push ebx
push ebx
push 0x7530
push 0x43d294
mov ecx, eax
call fcn.004088f3
jmp 0x4082ef
xor eax, eax
mov byte [ebp - 4], bl
mov dword [ebp - 0x1c], eax
mov ecx, esi
call fcn.00407fdf
mov esi, dword [esi + 4]
lea eax, [ebp - 0x8c0]
push 0x80400100
push eax
push esi
mov esi, dword [ebp - 0x1c]
mov ecx, esi
call fcn.00424507
test al, al
jne 0x408353
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x40832c
call esi
mov esi, eax
jmp 0x40833c
call esi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x40], esi
lea edx, [ebp - 0x40]
mov ecx, dword [eax + 4]
push edx
mov eax, dword [ecx]
call dword [eax + 8]
jmp 0x40842e
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x18]
mov esi, dword [ebp - 0x18]
mov dword [ebp - 0x2c], eax
mov edi, eax
lea edx, [ebp - 0x40]
mov ecx, dword [esi + 4]
push edx
mov eax, dword [ecx]
call dword [eax]
cmp byte [ebp - 0xd], bl
jne 0x408396
cmp edi, ebx
jbe 0x40837b
cmp edi, 0xffffffff
jne 0x408396
mov ecx, dword [esi + 4]
mov edi, 0x8004d554
mov dword [ebp - 0x40], edi
lea edx, [ebp - 0x40]
mov eax, dword [ecx]
push edx
call dword [eax + 8]
mov esi, edi
jmp 0x40842e
mov eax, dword [ebp + 8]
push ebx
lea ecx, [ebp - 0x5c]
mov dword [ebp - 0x50], 0x436538
mov eax, dword [eax]
mov dword [ebp - 0x48], 0x436530
push eax
call fcn.00407df6
mov esi, 0x436f5c
mov dword [ebp - 0x5c], esi
sub esp, 0x1c
lea eax, [ebp - 0x5c]
mov dword [ebp + 8], esp
mov edi, esp
push ebx
push eax
mov ecx, edi
mov byte [ebp - 4], 3
mov dword [edi + 0xc], 0x436538
mov dword [edi + 0x14], 0x436530
call fcn.00408dfd
lea ecx, [ebp - 0x7c]
mov dword [edi], esi
call fcn.00408bf7
cmp eax, ebx
jne 0x408441
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x408401
call esi
mov esi, eax
jmp 0x408411
call esi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x40], esi
lea edx, [ebp - 0x40]
mov ecx, dword [eax + 4]
push edx
mov eax, dword [ecx]
call dword [eax + 8]
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], bl
call fcn.00407e83
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x7c]
call fcn.00408cf9
mov eax, esi
jmp 0x4085aa
lea eax, [ebp - 0x5c]
lea ecx, [ebp - 0x9c]
push eax
call fcn.00408caf
mov esi, 0x10000
mov byte [ebp - 4], 4
push esi
mov byte [ebp - 0xe], bl
mov byte [ebp + 0xb], bl
mov byte [ebp - 0xd], bl
call fcn.004274b7
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
pop ecx
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x14], ebx
cmp byte [ebp + 0xb], bl
jne 0x408534
cmp byte [ebp - 0xd], bl
jne 0x408534
mov ecx, dword [ebp - 0x1c]
lea eax, [ebp - 0x14]
push eax
push esi
push dword [ebp - 0x24]
call fcn.0042472e
cmp dword [ebp - 0x14], 0xffffffff
sete byte [ebp + 0xb]
cmp byte [ebp + 0xb], bl
jne 0x4084f9
cmp dword [ebp - 0x14], ebx
jbe 0x4084cf
lea eax, [ebp - 0x28]
push ebx
push eax
push dword [ebp - 0x14]
push dword [ebp - 0x24]
push dword [ebp - 0x7c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4084c6
mov eax, dword [ebp - 0x28]
jmp 0x4084c9
or eax, 0xffffffff
cmp eax, ebx
sete byte [ebp + 0xb]
cmp byte [ebp + 0xb], bl
jne 0x4084f9
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x40]
add dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x18]
push edx
mov ecx, dword [eax + 4]
mov eax, dword [ecx]
call dword [eax + 4]
cmp eax, 1
setne byte [ebp - 0xe]
cmp dword [ebp - 0x14], ebx
sete byte [ebp - 0xd]
jmp 0x40852b
call edi
test eax, eax
jg 0x408503
call edi
jmp 0x40850f
call edi
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0x40]
push edx
mov ecx, dword [eax + 4]
mov eax, dword [ecx]
call dword [eax + 8]
cmp eax, 1
setne byte [ebp + 0xb]
cmp byte [ebp - 0xe], bl
je 0x408475
push dword [ebp - 0x24]
call fcn.00426aeb
cmp dword [ebp - 0x7c], 0xffffffff
pop ecx
je 0x408555
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp eax, ebx
je 0x408555
push dword [ebp - 0x7c]
call eax
or dword [ebp - 0x7c], 0xffffffff
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [ebp - 0xe], bl
jne 0x408572
cmp byte [ebp + 0xb], bl
jne 0x408572
lea ecx, [ebp - 0x9c]
call fcn.00408cdb
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0x40]
push edx
mov ecx, dword [eax + 4]
mov eax, dword [ecx]
call dword [eax + 0xc]
lea ecx, [ebp - 0x9c]
mov byte [ebp - 4], 3
call fcn.00408ce0
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], bl
call fcn.00407e83
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x7c]
call fcn.00408cf9
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 4