Function at 0x412a50
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54138d
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x5d0074]
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 ebx, edx
mov esi, ecx
mov dword [ebp - 0x60], esi
mov dword [ebp - 0x6c], esi
mov dword [ebp - 0x5c], 0
mov eax, dword fs:[0x2c]
mov ecx, dword [eax]
mov eax, dword [0x5d6690]
cmp eax, dword [ecx + 4]
jle 0x412ae3
push 0x5d6690
call fcn.0052198d
add esp, 4
cmp dword [0x5d6690], 0xffffffff
jne 0x412ae3
mov dword [ebp - 4], 1
mov ecx, 0x5d6694
call fcn.0048e1a0
push 0x56f8c0
call fcn.005217b5
mov byte [ebp - 4], 0
push 0x5d6690
call fcn.00521943
add esp, 8
push 3
xor eax, eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
lea ecx, [ebp - 0x40]
push 0x57e730
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
call fcn.00407880
mov dword [ebp - 4], 2
lea edx, [ebp - 0x40]
push 1
lea ecx, [ebp - 0x58]
call fcn.0048c1b0
add esp, 4
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x40]
call fcn.00407b40
push 4
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
lea ecx, [ebp - 0x28]
push str.html
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
call fcn.00407880
mov byte [ebp - 4], 5
mov edi, dword [ebp - 0x18]
test edi, edi
je 0x412b97
push 1
push 0x584298
lea ecx, [ebp - 0x58]
call fcn.00418ac0
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push edi
cmovae eax, dword [ebp - 0x28]
lea ecx, [ebp - 0x58]
push eax
call fcn.00418ac0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x28]
call fcn.00407b40
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x58]
call fcn.0048d0b0
mov byte [ebp - 4], 6
cmp dword [eax + 0x14], 8
jb 0x412bbb
mov eax, dword [eax]
push 0
push 0x80
push 2
push 0
push 1
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [ebp - 0x68], 0x57dd34
mov dword [ebp - 0x64], edi
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x40]
call fcn.00407b40
cmp edi, 0xffffffff
jne 0x412c29
xor eax, eax
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
mov dword [ebp - 0x5c], 1
mov byte [ebp - 4], 4
push edi
mov dword [ebp - 0x68], 0x57dd34
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x64], 0
jmp 0x412cb2
mov eax, dword [0x5d6698]
cmp dword [0x5d669c], eax
je 0x412c51
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x70], eax
push ecx
mov ecx, eax
call fcn.00406ba0
mov byte [ebp - 4], 8
add dword [0x5d6698], 0x18
jmp 0x412c60
lea edx, [ebp - 0x58]
mov ecx, 0x5d6694
push edx
push eax
call fcn.0048ea90
cmp dword [ebx + 0x14], 8
mov ecx, ebx
jb 0x412c6a
mov ecx, dword [ebx]
mov eax, dword [ebx + 0x10]
lea edx, [ebp - 0x60]
push 0
push edx
add eax, eax
mov dword [ebp - 0x60], 0
push eax
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
lea ecx, [ebp - 0x58]
call fcn.0048d0b0
mov dword [ebp - 0x5c], 1
mov byte [ebp - 4], 4
mov dword [ebp - 0x68], 0x57dd34
test edi, edi
je 0x412cb2
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x64], 0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x58]
call fcn.00407b40
mov eax, esi
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.005214e1
mov esp, ebp
pop ebp
ret