Function at 0x41bef0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x924
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x5e8], ebx
je 0x41c2fe
push ebp
push edi
push 1
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
mov ebp, dword [esp + 0x938]
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 0x41bf5f
mov edi, dword [esp + 0x10]
mov eax, dword [esp + 0x93c]
mov edx, dword [esi + 0x61c]
cmp eax, ebx
push ebx
push edx
jne 0x41bf89
mov eax, dword [esi + 0x618]
lea ecx, [esp + 0x40]
push eax
push ebx
push ebp
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
jmp 0x41bf9c
mov ecx, dword [esi + 0x618]
lea edx, [esp + 0x40]
push ecx
push 0x41ba20
push ebp
push edx
push ebx
push eax
push 0x14c
call dword [esi + 0x614]
cmp eax, ebx
je 0x41c2f1
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
cmp eax, edi
jne 0x41bfc6
cmp ecx, dword [esp + 0x14]
je 0x41c2f1
push ebx
lea edx, [esp + 0x14c]
push ebx
push edx
lea edx, [esp + 0x260]
mov dword [esp + 0x20], ecx
push edx
push ecx
push eax
mov ecx, esi
mov dword [esp + 0x28], eax
call fcn.0041bae0
test eax, eax
jne 0x41c025
mov eax, dword [esp + 0x3c]
xor ecx, ecx
cmp ecx, ebx
jne 0x41c00a
cmp eax, 0xffffffff
jne 0x41c00a
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 + 0x25c]
push str.0x_08I64X
push ecx
call fcn.0042bf88
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.0041beb0
test eax, eax
jne 0x41c048
xor edx, edx
mov dword [esp + 0x28], edx
jmp 0x41c04c
mov edx, dword [esp + 0x28]
cmp edx, ebx
mov byte [esp + 0x150], bl
jne 0x41c07c
mov ecx, dword [esp + 0x3c]
lea edx, [esp + 0x140]
lea eax, [esp + 0x150]
push edx
mov edx, dword [esp + 0x3c]
push eax
push ecx
push edx
mov ecx, esi
call fcn.0041bd60
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x38]
xor ecx, ecx
and eax, 0xffff0000
cmp eax, 0x7ffe0000
jne 0x41c096
cmp ecx, ebx
je 0x41c2e1
cmp edx, ebx
je 0x41c1ee
cmp dword [esp + 0x940], ebx
jne 0x41c13c
cmp byte [edx + 1], 0x3a
jne 0x41c13c
lea edi, [esp + 0x150]
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 + 0x270]
push ecx
push eax
je 0x41c11c
mov eax, dword [esp + 0x48]
lea ecx, [esp + 0x174]
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.0042b000
add esp, 0x38
jmp 0x41c2e1
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.0042b000
add esp, 0x34
jmp 0x41c2e1
lea edi, [esp + 0x150]
or ecx, 0xffffffff
xor eax, eax
push edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x41c1a3
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 + 0x278]
push ecx
lea eax, [esp + 0x178]
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.0042b000
add esp, 0x38
jmp 0x41c28d
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 + 0x278]
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.0042b000
add esp, 0x34
jmp 0x41c28d
lea edi, [esp + 0x150]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x41c24c
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 + 0x270]
push eax
lea edx, [esp + 0x170]
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.0042b000
add esp, 0x30
jmp 0x41c28d
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 + 0x270]
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.0042b000
add esp, 0x2c
cmp dword [esp + 0x940], ebx
je 0x41c2e1
lea ecx, [esp + 0x358]
lea edx, [esp + 0x740]
push ecx
push 0x4485f8
push edx
call fcn.0042bf88
add esp, 0xc
lea eax, [esp + 0x34]
lea edi, [esp + 0x740]
or ecx, 0xffffffff
push ebx
push eax
xor eax, eax
mov edx, dword [esp + 0x948]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
lea ecx, [esp + 0x74c]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x4c]
or eax, ecx
jne 0x41bf5b
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
pop edi
pop ebp
pop esi
pop ebx
add esp, 0x924
ret 0xc