Function at 0x41e1e0
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports
Set file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x455016
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x4500
call fcn.00441c60
mov eax, dword [0x46bd84]
xor eax, esp
mov dword [esp + 0x44fc], eax
push esi
push edi
mov eax, dword [0x46bd84]
xor eax, esp
push eax
lea eax, [esp + 0x4510]
mov dword fs:[0], eax
xor esi, esi
xor eax, eax
push 0x4018
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
lea eax, [esp + 0xdc]
push esi
push eax
mov dword [esp + 0x24], esi
mov dword [ebx + 0xc], 1
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], esi
mov dword [esp + 0x50], esi
mov dword [esp + 0x54], esi
mov dword [esp + 0x5c], esi
mov dword [esp + 0xe0], esi
call fcn.0043f900
add esp, 0xc
push 0x4c
lea ecx, [esp + 0x7c]
push esi
push ecx
mov dword [esp + 0x40], esi
mov dword [esp + 0x44], esi
mov dword [esp + 0x6c], esi
mov dword [esp + 0x70], esi
mov dword [esp + 0x80], esi
call fcn.0043f900
mov eax, dword [ebx + 4]
add esp, 0xc
push esi
push 0x80
push 3
push esi
push 1
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esp + 0x58], eax
cmp eax, 0xffffffff
jne 0x41e2cd
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, esi
je 0x41e2cd
mov dword [esp + 0x18], 0x6e
jmp 0x41e84c
lea edx, [esp + 0x50]
mov dword [esp + 0x50], 0x423070
mov dword [esp + 0x54], 0x4230a0
mov dword [esp + 0xd4], 0x4259a0
mov dword [esp + 0xd8], 0x425a00
mov dword [esp + 0xdc], 0x425a10
mov dword [esp + 0xe0], 0x425a70
mov dword [esp + 0xe4], edx
mov dword [esp + 0xec], esi
mov dword [esp + 0xe8], esi
mov dword [esp + 0x34], 0x422300
mov dword [esp + 0x38], 0x4222f0
mov dword [esp + 0x60], 0x422300
mov dword [esp + 0x64], 0x4222f0
mov dword [esp + 0x6c], 0xffffffff
mov dword [esp + 0x3c], esi
mov dword [esp + 0x70], esi
call fcn.00422370
lea eax, [esp + 0xd4]
push eax
lea ecx, [esp + 0x78]
push ecx
lea edx, [esp + 0x68]
lea ecx, [esp + 0x3c]
mov dword [esp + 0x7c], esi
mov dword [esp + 0x80], esi
mov dword [esp + 0x84], esi
mov dword [esp + 0x88], esi
mov dword [esp + 0x8c], esi
mov dword [esp + 0x90], esi
mov dword [esp + 0x94], esi
mov dword [esp + 0x98], esi
mov dword [esp + 0xac], esi
mov dword [esp + 0xb0], esi
mov dword [esp + 0xb4], esi
mov dword [esp + 0xb8], esi
mov dword [esp + 0xbc], esi
mov dword [esp + 0xc0], esi
mov dword [esp + 0xc4], esi
call fcn.004252e0
add esp, 8
cmp eax, esi
je 0x41e3f8
lea edi, [esp + 0x34]
lea eax, [esp + 0x74]
call fcn.004232a0
mov dword [esp + 0x18], 0x3ee
jmp 0x41e861
xor edi, edi
mov dword [esp + 0x1c], edi
cmp dword [esp + 0x90], esi
jbe 0x41e522
mov edx, dword [esp + 0x84]
mov dword [esp + 0x10], edx
jmp 0x41e420
push 0x206
lea ecx, [esp + 0x40fa]
xor eax, eax
push esi
push ecx
mov word [esp + 0x4100], ax
call fcn.0043f900
mov ecx, dword [esp + 0xc0]
mov eax, dword [ecx + edi*4]
mov ecx, dword [ecx + edi*4 + 4]
mov edx, dword [esp + 0xc4]
add esp, 0xc
sub ecx, eax
lea edx, [edx + eax*2]
mov eax, esi
je 0x41e48c
lea edi, [esp + 0x40f4]
sub edx, edi
jmp 0x41e470
lea edi, [edx + eax*2]
mov di, word [esp + edi + 0x40f4]
mov word [esp + eax*2 + 0x40f4], di
inc eax
cmp eax, ecx
jb 0x41e470
mov edi, dword [esp + 0x1c]
mov eax, dword [esp + 0x10]
cmp byte [eax + 0x19], 0
je 0x41e4fd
lea eax, [esp + 0x40f4]
push eax
lea ecx, [ebx + 8]
push ecx
lea edx, [esp + 0x1c]
push edx
call fcn.0040dce0
add esp, 0xc
push 0x5c
push 0x2f
lea eax, [esp + 0x1c]
push eax
mov dword [esp + 0x4524], esi
call fcn.0040d7f0
mov ecx, dword [esp + 0x14]
push ecx
push esi
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
mov dword [esp + 0x4518], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41e50b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x41e50b
mov ecx, dword [eax + 8]
add dword [esp + 0x24], ecx
mov edx, dword [eax + 0xc]
adc dword [esp + 0x28], edx
add dword [esp + 0x10], 0x20
inc edi
mov dword [esp + 0x1c], edi
cmp edi, dword [esp + 0x90]
jb 0x41e420
xor edi, edi
mov dword [esp + 0x1c], edi
cmp dword [esp + 0x90], esi
jbe 0x41e861
mov eax, dword [esp + 0x84]
mov dword [esp + 0x14], eax
push 0x206
lea edx, [esp + 0x4302]
xor ecx, ecx
push esi
push edx
mov word [esp + 0x4308], cx
call fcn.0043f900
mov ecx, dword [esp + 0xc0]
mov eax, dword [ecx + edi*4]
mov ecx, dword [ecx + edi*4 + 4]
mov edx, dword [esp + 0xc4]
add esp, 0xc
sub ecx, eax
lea edx, [edx + eax*2]
mov eax, esi
je 0x41e5aa
lea esi, [esp + 0x42fc]
sub edx, esi
jmp 0x41e590
lea esi, [edx + eax*2]
mov si, word [esp + esi + 0x42fc]
mov word [esp + eax*2 + 0x42fc], si
inc eax
cmp eax, ecx
jb 0x41e590
xor esi, esi
lea eax, [esp + 0x60]
push eax
lea ecx, [esp + 0x38]
push ecx
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x80]
push ecx
lea edx, [esp + 0x50]
push edx
lea eax, [esp + 0x84]
push eax
lea ecx, [esp + 0xf0]
push edi
push ecx
lea eax, [esp + 0x98]
mov dword [esp + 0x54], esi
mov dword [esp + 0x44], esi
call fcn.00425700
mov edx, dword [esp + 0x38]
add esp, 0x24
cmp byte [edx + 0x19], 0
jne 0x41e7fe
lea eax, [esp + 0x42fc]
push eax
lea ecx, [ebx + 8]
push ecx
lea edx, [esp + 0x18]
push edx
call fcn.0040dce0
add esp, 0xc
push 0x5c
push 0x2f
lea eax, [esp + 0x18]
push eax
mov dword [esp + 0x4524], 1
call fcn.0040d7f0
lea esi, [esp + 0x10]
lea edi, [esp + 0x68]
call fcn.00420c30
mov eax, dword [eax]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
mov eax, dword [esp + 0x68]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41e66b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x10]
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esp + 0x40], eax
cmp eax, 0xffffffff
je 0x41e817
mov edi, dword [esp + 0x20]
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x3c]
lea esi, [edx + eax]
test edi, edi
jbe 0x41e75f
jmp 0x41e6b8
mov edi, dword [esp + 0x20]
mov esi, dword [esp + 0x30]
mov eax, 0x100000
cmp edi, 0x100000
ja 0x41e6c7
mov eax, edi
mov edx, dword [esp + 0x40]
push 0
lea ecx, [esp + 0x60]
push ecx
push eax
push esi
push edx
mov dword [esp + 0x70], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x41e74d
mov eax, dword [esp + 0x5c]
add esi, eax
sub edi, eax
mov dword [esp + 0x30], esi
mov esi, dword [esp + 0x44]
add esi, eax
mov eax, dword [ebx + 0x18]
mov dword [esp + 0x20], edi
mov edi, dword [esp + 0x48]
adc edi, 0
mov dword [esp + 0x44], esi
mov dword [esp + 0x48], edi
test eax, eax
je 0x41e740
mov ecx, dword [ebx + 0x14]
mov edx, dword [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x28]
push edi
push esi
push edx
mov edx, dword [esp + 0x20]
push ecx
mov ecx, dword [ebx + 0xc]
push edx
push 0
push ecx
call eax
test eax, eax
je 0x41e740
cmp esi, dword [esp + 0x24]
jne 0x41e757
cmp edi, dword [esp + 0x28]
jne 0x41e757
cmp dword [esp + 0x20], 0
ja 0x41e6b0
jmp 0x41e75f
mov dword [esp + 0x18], 0x1d
jmp 0x41e75f
mov dword [esp + 0x18], 0x4c7
mov esi, dword [esp + 0x14]
mov edx, dword [esi]
mov dword [esp + 0xc4], edx
mov eax, dword [esi + 4]
mov dword [esp + 0xc8], eax
mov ecx, dword [esi]
lea eax, [esp + 0xc4]
push eax
mov dword [esp + 0xd0], ecx
mov edx, dword [esi + 4]
push 0
lea ecx, [esp + 0xd4]
mov dword [esp + 0xd8], edx
mov edx, dword [esp + 0x48]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_SetFileTime]
mov eax, dword [esp + 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x18], 0
jne 0x41e81f
cmp byte [esi + 0x1d], 0
je 0x41e7cd
mov ecx, dword [esi + 0x14]
mov edx, dword [esp + 0x10]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov dword [esp + 0x4518], 0xffffffff
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41e7f8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [esp + 0x1c]
xor esi, esi
add dword [esp + 0x14], 0x20
inc edi
mov dword [esp + 0x1c], edi
cmp edi, dword [esp + 0x90]
jb 0x41e540
jmp 0x41e84c
mov dword [esp + 0x18], 0x1d
mov dword [esp + 0x4518], 0xffffffff
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41e84a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor esi, esi
mov eax, dword [esp + 0x3c]
cmp eax, esi
je 0x41e861
push eax
lea ecx, [esp + 0x38]
push ecx
call dword [esp + 0x40]
add esp, 8
cmp dword [esp + 0x74], esi
je 0x41e874
lea edi, [esp + 0x34]
lea eax, [esp + 0x74]
call fcn.004232a0
mov eax, dword [esp + 0x58]
cmp eax, esi
je 0x41e89c
cmp eax, 0xffffffff
je 0x41e89c
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x41e894
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x41e89c
mov dword [esp + 0x58], 0xffffffff
mov ecx, dword [esp + 0x18]
mov eax, dword [ebx + 0x18]
mov edx, ecx
neg edx
sbb edx, edx
and edx, 0xfffffffe
add edx, 2
mov dword [ebx + 0xc], edx
cmp eax, esi
je 0x41e8d6
mov edx, dword [ebx + 0x14]
push edx
mov edx, dword [esp + 0x4c]
push edx
mov edx, dword [esp + 0x4c]
push edx
mov edx, dword [esp + 0x34]
push edx
mov edx, dword [esp + 0x34]
push edx
push esi
push ecx
mov ecx, dword [ebx + 0xc]
push ecx
call eax
mov dword [ebx + 0x10], esi
mov dword [ebx + 0x18], esi
mov dword [ebx + 0x14], esi
mov ecx, dword [esp + 0x4510]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x44fc]
xor ecx, esp
call fcn.0043d85c
mov esp, ebp
pop ebp
ret