Function at 0x41ed6a
Capabilities:
Write file on windows

Disassembly:
push 0x394
mov eax, 0x5b2d9e
call fcn.0057b78b
mov dword [ebp - 0x1b8], ecx
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x1c8]
push eax
call fcn.0041da8a
mov esi, dword [ebp - 0x1c4]
xor ebx, ebx
mov edx, dword [ebp - 0x1c8]
mov eax, esi
mov dword [ebp - 4], ebx
cmp edx, eax
je 0x41edb7
mov ecx, dword [edx]
cmp dword [ecx + 0xe8], 1
je 0x41edb7
add edx, 4
cmp edx, esi
jne 0x41eda5
cmp edx, esi
je 0x41edf4
lea ecx, [edx + 4]
cmp ecx, esi
je 0x41eddf
mov esi, dword [ecx]
cmp dword [esi + 0xe8], 1
je 0x41edd2
mov dword [edx], esi
add edx, 4
add ecx, 4
cmp ecx, eax
jne 0x41edc2
mov esi, dword [ebp - 0x1c4]
cmp edx, eax
je 0x41edf4
push edx
push esi
push eax
call fcn.0040f515
add esp, 0xc
mov dword [ebp - 0x1c4], eax
push ebx
lea eax, [ebp - 0x1c8]
push 5
push eax
call fcn.004300e4
add esp, 0xc
lea eax, [ebp - 0x188]
mov ecx, 0x63c338
push eax
call fcn.004060b5
push 0x5ccdf8
push eax
lea eax, [ebp - 0x190]
mov byte [ebp - 4], 1
push eax
call fcn.00405d6d
add esp, 0xc
mov eax, dword [eax]
xor ecx, ecx
mov dword [ebp - 0x78], ebx
mov word [ebp - 0x78], cx
lea ecx, [ebp - 0x78]
push eax
mov byte [ebp - 4], 2
mov dword [ebp - 0x68], ebx
mov dword [ebp - 0x64], 7
call fcn.004048f3
mov ecx, dword [ebp - 0x190]
lea ecx, [ecx - 0x10]
call fcn.004055b1
mov ecx, dword [ebp - 0x188]
mov byte [ebp - 4], 5
lea ecx, [ecx - 0x10]
call fcn.004055b1
push ebx
push 1
lea ecx, [ebp - 0x3a0]
call fcn.004536c0
lea ecx, [ebp - 0x198]
call fcn.00404b89
push 3
lea eax, [ebp - 0x198]
mov byte [ebp - 4], 7
push 0x5cce10
push eax
call fcn.00409651
mov edi, dword [ebp - 0x198]
lea ecx, [ebp - 0x3a0]
add esp, 0xc
push 0xffffffffffffffff
push edi
call fcn.00455c80
push ebx
lea ecx, [ebp - 0x3a0]
call fcn.00454ef0
mov dword [ebp - 0x190], eax
mov eax, ebx
mov dword [ebp - 0x19c], eax
mov dword [ebp - 0x1b0], eax
mov dword [ebp - 0x1ac], ebx
mov dword [ebp - 0x1a4], eax
mov dword [ebp - 0x1a8], eax
cmp byte [ebp + 0xc], 0
mov byte [ebp - 4], 8
jne 0x41effb
mov eax, dword [ebp - 0x1b8]
mov eax, dword [eax + 4]
mov dword [ebp - 0x188], eax
mov esi, dword [eax]
cmp esi, eax
je 0x41effb
mov edi, ebx
xor eax, eax
lea ebx, [esi + 8]
push ebx
lea ecx, [ebp - 0x184]
mov dword [ebp - 0x184], eax
mov dword [ebp - 0x174], eax
mov dword [ebp - 0x170], eax
call fcn.00406473
mov ecx, dword [ebx + 0x18]
mov dword [ebp - 0x16c], ecx
mov byte [ebp - 4], 9
call fcn.0041ff36
xor ebx, ebx
test al, al
je 0x41efca
mov ecx, dword [ebp - 0x16c]
mov eax, dword [ecx]
cmp dword [eax - 0xc], ebx
je 0x41efca
cmp dword [ecx + 8], ebx
jbe 0x41efca
lea eax, [ebp - 0x184]
mov dword [ebp - 0x48], ebx
push eax
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], ebx
call fcn.00406473
mov eax, dword [ebp - 0x16c]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x48]
mov byte [ebp - 4], 0xa
push eax
cmp edi, dword [ebp - 0x1a4]
je 0x41efa4
mov ecx, edi
call fcn.0041e597
add edi, 0x1c
mov dword [ebp - 0x1ac], edi
jmp 0x41efc2
push edi
lea ecx, [ebp - 0x1b0]
call fcn.0041e138
mov eax, dword [ebp - 0x1a8]
mov edi, dword [ebp - 0x1ac]
mov dword [ebp - 0x1a4], eax
lea ecx, [ebp - 0x48]
call fcn.00404880
lea ecx, [ebp - 0x184]
mov byte [ebp - 4], 8
call fcn.00404880
mov eax, dword [esi]
mov esi, eax
cmp eax, dword [ebp - 0x188]
jne 0x41ef14
mov eax, dword [ebp - 0x1b0]
mov edi, dword [ebp - 0x198]
mov dword [ebp - 0x19c], eax
mov eax, dword [ebp - 0x1c8]
mov ecx, dword [ebp - 0x1c4]
mov dword [ebp - 0x1b4], eax
mov dword [ebp - 0x188], ecx
cmp eax, ecx
je 0x41f24b
mov edi, dword [ebp - 0x1b8]
mov esi, dword [eax]
test esi, esi
je 0x41f234
mov ecx, esi
call fcn.00432c78
mov ecx, esi
mov ebx, eax
call fcn.00432e84
mov ecx, eax
call fcn.00435def
xor esi, esi
mov ecx, dword [eax]
xor eax, eax
push ecx
mov dword [ebp - 0x44], esi
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x30], 7
mov word [ebp - 0x44], ax
call fcn.004048f3
lea eax, [ebp - 0x1bc]
mov byte [ebp - 4], 0xb
push eax
mov ecx, ebx
call fcn.0042d1d4
mov eax, dword [eax]
xor ecx, ecx
mov dword [ebp - 0x2c], esi
mov word [ebp - 0x2c], cx
lea ecx, [ebp - 0x2c]
push eax
mov byte [ebp - 4], 0xc
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], 7
call fcn.004048f3
mov ecx, dword [ebp - 0x1bc]
mov byte [ebp - 4], 0xe
lea ecx, [ecx - 0x10]
call fcn.004055b1
lea eax, [ebp - 0x1a0]
mov ecx, ebx
push eax
call fcn.0042d11a
mov eax, dword [eax]
xor ecx, ecx
mov dword [ebp - 0x60], esi
mov word [ebp - 0x60], cx
lea ecx, [ebp - 0x60]
push eax
mov byte [ebp - 4], 0xf
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x4c], 7
call fcn.004048f3
mov ecx, dword [ebp - 0x1a0]
mov byte [ebp - 4], 0x11
lea ecx, [ecx - 0x10]
call fcn.004055b1
mov ecx, ebx
call fcn.0042d060
mov ecx, ebx
mov esi, eax
call fcn.0042d1ef
push eax
push esi
lea eax, [ebp - 0x60]
mov ecx, edi
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x44]
push eax
push dword [ebp - 0x190]
call fcn.0041ff4c
mov eax, dword [ebp - 0x4c]
cmp eax, 8
jb 0x41f164
mov ecx, dword [ebp - 0x60]
lea eax, [eax*2 + 2]
mov dword [ebp - 0x194], eax
mov dword [ebp - 0x18c], ecx
cmp eax, 0x1000
jb 0x41f15b
lea eax, [ebp - 0x194]
push eax
lea eax, [ebp - 0x18c]
push eax
call fcn.0040480e
mov eax, dword [ebp - 0x194]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x18c]
push eax
push ecx
call fcn.0057b69e
pop ecx
pop ecx
xor eax, eax
mov dword [ebp - 0x4c], 7
xor ebx, ebx
mov word [ebp - 0x60], ax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x50], ebx
cmp eax, 8
jb 0x41f1c5
mov ecx, dword [ebp - 0x2c]
lea eax, [eax*2 + 2]
mov dword [ebp - 0x18c], eax
mov dword [ebp - 0x194], ecx
cmp eax, 0x1000
jb 0x41f1bc
lea eax, [ebp - 0x18c]
push eax
lea eax, [ebp - 0x194]
push eax
call fcn.0040480e
mov eax, dword [ebp - 0x18c]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x194]
push eax
push ecx
call fcn.0057b69e
pop ecx
pop ecx
xor eax, eax
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], ax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x18], 7
mov byte [ebp - 4], 8
cmp eax, 8
jb 0x41f228
mov ecx, dword [ebp - 0x44]
lea eax, [eax*2 + 2]
mov dword [ebp - 0x18c], eax
mov dword [ebp - 0x194], ecx
cmp eax, 0x1000
jb 0x41f21f
lea eax, [ebp - 0x18c]
push eax
lea eax, [ebp - 0x194]
push eax
call fcn.0040480e
mov eax, dword [ebp - 0x18c]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x194]
push eax
push ecx
call fcn.0057b69e
pop ecx
pop ecx
mov ecx, dword [ebp - 0x188]
mov eax, dword [ebp - 0x1b4]
add eax, 4
mov dword [ebp - 0x1b4], eax
cmp eax, ecx
jne 0x41f021
mov edi, dword [ebp - 0x198]
mov esi, dword [ebp - 0x1ac]
cmp dword [ebp - 0x19c], esi
je 0x41f467
mov edi, dword [ebp - 0x19c]
push edi
lea ecx, [ebp - 0x184]
mov dword [ebp - 0x184], ebx
mov dword [ebp - 0x174], ebx
mov dword [ebp - 0x170], ebx
call fcn.00406473
mov eax, dword [edi + 0x18]
mov dword [ebp - 0x16c], eax
cmp dword [ebp - 0x170], 8
lea eax, [ebp - 0x184]
mov dword [ebp - 0x44], ebx
cmovae eax, dword [ebp - 0x184]
xor ecx, ecx
mov word [ebp - 0x44], cx
lea ecx, [ebp - 0x44]
push eax
mov byte [ebp - 4], 0x12
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], 7
call fcn.004048f3
mov eax, dword [ebp - 0x16c]
xor ecx, ecx
mov byte [ebp - 4], 0x13
mov eax, dword [eax]
mov dword [ebp - 0x60], ebx
mov word [ebp - 0x60], cx
lea ecx, [ebp - 0x60]
push eax
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x4c], 7
call fcn.004048f3
mov eax, dword [ebp - 0x16c]
xor ecx, ecx
mov byte [ebp - 4], 0x14
mov eax, dword [eax + 4]
mov dword [ebp - 0x2c], ebx
mov word [ebp - 0x2c], cx
lea ecx, [ebp - 0x2c]
push eax
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], 7
call fcn.004048f3
mov eax, dword [ebp - 0x16c]
mov ecx, dword [ebp - 0x1b8]
mov byte [ebp - 4], 0x15
push dword [eax + 8]
lea eax, [ebp - 0x2c]
push ebx
push eax
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x44]
push eax
push dword [ebp - 0x190]
call fcn.0041ff4c
mov eax, dword [ebp - 0x18]
cmp eax, 8
jb 0x41f389
mov ecx, dword [ebp - 0x2c]
lea eax, [eax*2 + 2]
mov dword [ebp - 0x188], eax
mov dword [ebp - 0x18c], ecx
cmp eax, 0x1000
jb 0x41f380
lea eax, [ebp - 0x188]
push eax
lea eax, [ebp - 0x18c]
push eax
call fcn.0040480e
mov eax, dword [ebp - 0x188]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x18c]
push eax
push ecx
call fcn.0057b69e
pop ecx
pop ecx
xor eax, eax
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], ax
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x18], 7
cmp eax, 8
jb 0x41f3e8
mov ecx, dword [ebp - 0x60]
lea eax, [eax*2 + 2]
mov dword [ebp - 0x188], eax
mov dword [ebp - 0x18c], ecx
cmp eax, 0x1000
jb 0x41f3df
lea eax, [ebp - 0x188]
push eax
lea eax, [ebp - 0x18c]
push eax
call fcn.0040480e
mov eax, dword [ebp - 0x188]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x18c]
push eax
push ecx
call fcn.0057b69e
pop ecx
pop ecx
xor eax, eax
mov dword [ebp - 0x50], ebx
mov word [ebp - 0x60], ax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x4c], 7
cmp eax, 8
jb 0x41f447
mov ecx, dword [ebp - 0x44]
lea eax, [eax*2 + 2]
mov dword [ebp - 0x188], eax
mov dword [ebp - 0x18c], ecx
cmp eax, 0x1000
jb 0x41f43e
lea eax, [ebp - 0x188]
push eax
lea eax, [ebp - 0x18c]
push eax
call fcn.0040480e
mov eax, dword [ebp - 0x188]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x18c]
push eax
push ecx
call fcn.0057b69e
pop ecx
pop ecx
lea ecx, [ebp - 0x184]
mov byte [ebp - 4], 8
call fcn.00404880
add edi, 0x1c
cmp edi, esi
jne 0x41f263
mov edi, dword [ebp - 0x198]
push ebx
push ebx
push ebx
lea ecx, [ebp - 0x168]
mov byte [ebp - 4], 0x16
call fcn.00453900
lea eax, [ebp - 0x168]
mov byte [ebp - 4], 0x17
push eax
lea ecx, [ebp - 0x3a0]
call fcn.00454100
mov ecx, dword [ebp - 0x98]
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], bl
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x41f4a8
sub ecx, edx
push ecx
push dword [ebp - 0x98]
lea ecx, [ebp - 0x2c]
call fcn.00405728
push 1
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 0x18
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.004221c1
add esp, 0xc
cmp dword [ebp - 0x64], 8
lea eax, [ebp - 0x78]
push ebx
cmovae eax, dword [ebp - 0x78]
push 0x80
push 2
push ebx
push ebx
push 0x40000000
push eax
mov byte [ebp - 4], 0x19
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ecx, eax
mov dword [ebp - 0x1bc], ecx
cmp ecx, 0xffffffff
je 0x41f6f1
cmp dword [ebp - 0x30], 0x10
lea edx, [ebp - 0x1a0]
push ebx
push edx
push dword [ebp - 0x34]
lea eax, [ebp - 0x44]
mov dword [ebp - 0x1a0], ebx
cmovae eax, dword [ebp - 0x44]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebp - 0x1bc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x44]
call fcn.00405702
mov eax, dword [ebp - 0x18]
cmp eax, 0x10
jb 0x41f58d
mov ecx, dword [ebp - 0x2c]
inc eax
mov dword [ebp - 0x190], eax
mov dword [ebp - 0x188], ecx
cmp eax, 0x1000
jb 0x41f584
lea eax, [ebp - 0x190]
push eax
lea eax, [ebp - 0x188]
push eax
call fcn.0040480e
mov eax, dword [ebp - 0x190]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x188]
push eax
push ecx
call fcn.0057b69e
pop ecx
pop ecx
lea ecx, [ebp - 0x168]
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], bl
call fcn.0041d4b5
mov ecx, dword [ebp - 0x19c]
jmp 0x41f5f0
test ecx, ecx
je 0x41f66c
mov eax, ecx
mov dword [ebp - 0x1a0], eax
cmp eax, esi
je 0x41f61e
mov edi, ecx
mov ecx, edi
call fcn.00404880
add edi, 0x1c
cmp edi, esi
jne 0x41f602
mov edi, dword [ebp - 0x198]
xor ebx, ebx
mov ecx, dword [ebp - 0x19c]
mov eax, dword [ebp - 0x1a4]
sub eax, ecx
mov dword [ebp - 0x188], ecx
push 0x1c
cdq
pop esi
idiv esi
imul eax, eax, 0x1c
mov dword [ebp - 0x190], eax
cmp eax, 0x1000
jb 0x41f663
lea eax, [ebp - 0x190]
push eax
lea eax, [ebp - 0x188]
push eax
call fcn.0040480e
mov eax, dword [ebp - 0x190]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x188]
push eax
push ecx
call fcn.0057b69e
pop ecx
pop ecx
lea ecx, [edi - 0x10]
call fcn.004055b1
lea ecx, [ebp - 0x3a0]
call fcn.00453ad0
mov eax, dword [ebp - 0x64]
cmp eax, 8
jb 0x41f6ce
mov ecx, dword [ebp - 0x78]
lea eax, [eax*2 + 2]
mov dword [ebp - 0x190], eax
mov dword [ebp - 0x188], ecx
cmp eax, 0x1000
jb 0x41f6c5
lea eax, [ebp - 0x190]
push eax
lea eax, [ebp - 0x188]
push eax
call fcn.0040480e
mov eax, dword [ebp - 0x190]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x188]
push eax
push ecx
call fcn.0057b69e
pop ecx
pop ecx
xor eax, eax
mov dword [ebp - 0x68], ebx
lea ecx, [ebp - 0x1c8]
mov dword [ebp - 0x64], 7
mov word [ebp - 0x78], ax
call fcn.00413e1f
call fcn.0057b6dd
ret 8
push 0x5cce68
lea ecx, [ebp - 0x1d4]
call fcn.0041e652
push 0x61bd54
lea eax, [ebp - 0x1d4]
push eax
call fcn.0057e7cc
int3