Function at 0x4127a9
Capabilities:
Get file attributes
Set file attributes
Terminate process

Disassembly:
sub esp, 0x21c
mov eax, dword [0x562940]
xor eax, dword [esp + 0x21c]
push ebp
push esi
mov dword [esp + 0x220], eax
push edi
lea eax, [esp + 0xc]
push eax
push 0x14bc600
call fcn.00423420
mov esi, dword [esp + 0x14]
add esp, 8
test esi, esi
jne 0x412740
push 0x14bc600
push str.EXE_ERR_COULDNT_LOAD
call fcn.00440920
push eax
push 1
call fcn.0042e650
add esp, 0x10
mov ecx, 0x44
lea edi, [esp + 0x14]
rep movsd dword es:[edi], dword [esi]
xor esi, esi
lea ecx, [ecx]
mov eax, dword [esp + esi*4 + 0x14]
push eax
call dword [0x8c3980]
add esp, 4
mov dword [esp + esi*4 + 0x14], eax
inc esi
cmp esi, 0x44
jb 0x412750
mov ecx, dword [esp + 0x234]
mov esi, 0x110
xor eax, eax
cmp eax, dword [esp + 0x22c]
jne 0x412783
mov dword [esp + eax*8 + 0x1c], ecx
mov edx, dword [esp + eax*8 + 0x1c]
add edx, 3
and edx, 0xfffffffc
add esi, edx
inc eax
cmp eax, 0x21
jl 0x412776
push esi
call fcn.0051b1e7
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x4127d5
call fcn.00451300
push 0x10
push str.WIN_OUT_OF_MEM_TITLE
call fcn.00450c30
add esp, 4
push eax
push str.WIN_OUT_OF_MEM_BODY
call fcn.00450c30
add esp, 4
push eax
push ebp
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0xffffffffffffffff
call fcn.0051c8f0
push ebx
push esi
push 0
push ebp
call fcn.0042b1c0
mov ebx, dword [esp + 0x240]
add esp, 0xc
mov edi, 0x110
xor esi, esi
mov ecx, dword [esp + esi*8 + 0x20]
test ecx, ecx
je 0x41281b
cmp esi, dword [esp + 0x230]
je 0x41280b
mov eax, dword [esp + esi*8 + 0x24]
add eax, dword [esp + 0x10]
jmp 0x41280d
mov eax, ebx
push ecx
push eax
lea eax, [edi + ebp]
push eax
call fcn.0042b090
add esp, 0xc
mov ecx, dword [esp + esi*8 + 0x20]
add ecx, 3
and ecx, 0xfffffffc
mov dword [esp + esi*8 + 0x24], edi
add edi, ecx
inc esi
cmp esi, 0x21
jl 0x4127f0
xor esi, esi
mov eax, dword [esp + esi*4 + 0x18]
push eax
call dword [0x8c3980]
add esp, 4
mov dword [esp + esi*4 + 0x18], eax
inc esi
cmp esi, 0x44
jb 0x412833
push 0x110
lea edx, [esp + 0x1c]
push edx
push ebp
call fcn.0042b090
push 0
mov ecx, 0x14bc600
call fcn.00422f60
add esp, 0x10
mov ebx, 0x14bc600
mov dword [esp + 0x14], eax
call fcn.00422170
mov esi, eax
test esi, esi
pop ebx
jne 0x412893
push 0x14bc600
push str.Failed_to_open__s_n
call fcn.0042e2f0
add esp, 8
jmp 0x4128a4
push esi
push edi
push ebp
call fcn.004230d0
push esi
call fcn.004220d0
add esp, 0x10
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4128f7
mov ecx, dword [0x14deb60]
push 0
lea eax, [esp + 0x128]
push eax
mov eax, dword [ecx + 4]
push 0x14bc600
push 0x14d27e0
call fcn.00421b00
add esp, 0x10
lea edx, [esp + 0x124]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ecx, eax
or ecx, 1
cmp ecx, eax
je 0x4128f7
push ecx
lea eax, [esp + 0x128]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov esi, dword [esp + 0x238]
test esi, esi
je 0x41290e
push edi
push ebp
call fcn.0043ca80
add esp, 8
mov dword [esi], eax
push ebp
call fcn.0051ada8
mov ecx, dword [0x14daa2c]
mov eax, dword [0x13f8dd4]
add esp, 4
dec ecx
test eax, eax
mov dword [0x14daa2c], ecx
jne 0x41293c
mov ecx, dword [esp + 0xc]
push ecx
call fcn.0051ada8
add esp, 4
jmp 0x412968
mov esi, dword [esp + 0xc]
cmp dword [esi - 0x10], 0x89537892
je 0x412958
push 0x556750
push 0
call fcn.0042e650
add esp, 8
mov edx, dword [esi - 0xc]
mov dword [esi - 0x10], 0x89537893
sub dword [0x884e70], edx
mov ecx, dword [esp + 0x224]
xor ecx, dword [esp + 0x228]
pop edi
pop esi
pop ebp
add esp, 0x21c
jmp fcn.00523319