Function at 0x45f3f0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x53c
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x3e8], ebx
je 0x45f7dc
push ebp
push edi
push 1
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
mov ebp, dword [esp + 0x550]
mov dword [esp + 0x18], eax
mov ecx, 0x42
xor eax, eax
lea edi, [esp + 0x38]
mov dword [esp + 0x14], ebx
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 0xb8]
mov ecx, dword [ebp + 0xb4]
mov dword [esp + 0x38], eax
mov eax, 3
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x58], ecx
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x44], eax
mov dword [esp + 0x64], eax
xor edi, edi
jmp 0x45f45f
mov edi, dword [esp + 0x10]
mov eax, dword [esp + 0x554]
mov edx, dword [esi + 0x41c]
cmp eax, ebx
push ebx
push edx
jne 0x45f489
mov eax, dword [esi + 0x418]
lea ecx, [esp + 0x40]
push eax
push ebx
push ebp
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
jmp 0x45f49c
mov ecx, dword [esi + 0x418]
lea edx, [esp + 0x40]
push ecx
push 0x45ef20
push ebp
push edx
push ebx
push eax
push 0x14c
call dword [esi + 0x414]
cmp eax, ebx
je 0x45f7cf
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
cmp eax, edi
jne 0x45f4c6
cmp ecx, dword [esp + 0x14]
je 0x45f7cf
push ebx
lea edx, [esp + 0x14c]
push ebx
push edx
lea edx, [esp + 0x15c]
mov dword [esp + 0x20], ecx
push edx
push ecx
push eax
mov ecx, esi
mov dword [esp + 0x28], eax
call fcn.0045efe0
test eax, eax
jne 0x45f525
mov eax, dword [esp + 0x3c]
xor ecx, ecx
cmp ecx, ebx
jne 0x45f50a
cmp eax, 0xffffffff
jne 0x45f50a
mov edx, dword [esp + 0x38]
and eax, ebx
mov dword [esp + 0x38], edx
mov dword [esp + 0x3c], eax
push eax
mov eax, dword [esp + 0x3c]
push eax
lea ecx, [esp + 0x158]
push str.0x_08I64X
push ecx
call fcn.0046fca8
add esp, 0x10
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
lea edx, [esp + 0x1c]
push ebx
push edx
push eax
push ecx
mov ecx, esi
call fcn.0045f3b0
test eax, eax
jne 0x45f548
xor edx, edx
mov dword [esp + 0x28], edx
jmp 0x45f54c
mov edx, dword [esp + 0x28]
cmp edx, ebx
mov byte [esp + 0x254], bl
jne 0x45f57c
mov ecx, dword [esp + 0x3c]
lea edx, [esp + 0x140]
lea eax, [esp + 0x254]
push edx
mov edx, dword [esp + 0x3c]
push eax
push ecx
push edx
mov ecx, esi
call fcn.0045f260
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x38]
xor ecx, ecx
and eax, 0xffff0000
cmp eax, 0x7ffe0000
jne 0x45f596
cmp ecx, ebx
je 0x45f7bf
cmp edx, ebx
je 0x45f6ee
cmp dword [esp + 0x558], ebx
jne 0x45f63c
cmp byte [edx + 1], 0x3a
jne 0x45f63c
lea edi, [esp + 0x254]
or ecx, 0xffffffff
xor eax, eax
push ebx
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0xac]
not ecx
dec ecx
push eax
mov ecx, dword [esp + 0xa8]
mov eax, dword [esp + 0xa0]
push ebx
push ecx
mov ecx, dword [esp + 0xa0]
push ebx
push eax
push ebx
lea eax, [esp + 0x16c]
push ecx
push eax
je 0x45f61c
mov eax, dword [esp + 0x48]
lea ecx, [esp + 0x278]
push ecx
push eax
push edx
lea ecx, [esp + 0x388]
push str._hs__u_:__hs:_hs_0x_I64X_0x_I64X_0x_I64X_0x_I64X__r_n
push ecx
call fcn.0046fca8
add esp, 0x38
jmp 0x45f7bf
mov ecx, dword [esp + 0x48]
push ecx
push edx
lea edx, [esp + 0x384]
push str._hs__u_:__hs_0x_I64X_0x_I64X_0x_I64X_0x_I64X__r_n
push edx
call fcn.0046fca8
add esp, 0x34
jmp 0x45f7bf
lea edi, [esp + 0x254]
or ecx, 0xffffffff
xor eax, eax
push edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x45f6a3
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0xac]
mov edx, dword [esp + 0xa4]
push eax
mov eax, dword [esp + 0xa0]
push ebx
push ecx
mov ecx, dword [esp + 0xa0]
push ebx
push edx
push ebx
push eax
push ebx
lea edx, [esp + 0x174]
push ecx
lea eax, [esp + 0x27c]
push edx
push eax
lea ecx, [esp + 0x388]
push str._hs:_hs_0x_I64X_0x_I64X_0x_I64X_0x_I64X____Line__u_in__hs_r_n
push ecx
call fcn.0046fca8
add esp, 0x38
jmp 0x45f78d
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0xac]
mov ecx, dword [esp + 0xa4]
push edx
mov edx, dword [esp + 0xa0]
push ebx
push eax
mov eax, dword [esp + 0xa0]
push ebx
push ecx
push ebx
push edx
push ebx
lea ecx, [esp + 0x174]
push eax
push ecx
lea edx, [esp + 0x384]
push str._hs_0x_I64X_0x_I64X_0x_I64X_0x_I64X____Line__u_in__hs_r_n
push edx
call fcn.0046fca8
add esp, 0x34
jmp 0x45f78d
lea edi, [esp + 0x254]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x45f74c
mov eax, dword [esp + 0xa8]
mov ecx, dword [esp + 0xa0]
mov edx, dword [esp + 0x98]
push ebx
push eax
mov eax, dword [esp + 0x98]
push ebx
push ecx
push ebx
push edx
push ebx
lea ecx, [esp + 0x16c]
push eax
lea edx, [esp + 0x274]
push ecx
push edx
lea eax, [esp + 0x380]
push str._hs:_hs_0x_I64X_0x_I64X_0x_I64X_0x_I64X__r_n
push eax
call fcn.0046fca8
add esp, 0x30
jmp 0x45f78d
mov ecx, dword [esp + 0xa8]
mov edx, dword [esp + 0xa0]
mov eax, dword [esp + 0x98]
push ebx
push ecx
mov ecx, dword [esp + 0x98]
push ebx
push edx
push ebx
push eax
push ebx
lea edx, [esp + 0x16c]
push ecx
push edx
lea eax, [esp + 0x37c]
push str._hs_0x_I64X_0x_I64X_0x_I64X_0x_I64X__r_n
push eax
call fcn.0046fca8
add esp, 0x2c
mov edx, dword [esp + 0x558]
cmp edx, ebx
je 0x45f7bf
lea ecx, [esp + 0x34]
push ebx
push ecx
lea edi, [esp + 0x360]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 0x360]
push ecx
push eax
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [esp + 0x48]
mov eax, dword [esp + 0x4c]
or ecx, eax
jne 0x45f45b
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
pop edi
pop ebp
pop esi
pop ebx
add esp, 0x53c
ret 0xc