Function at 0x434050
Capabilities:
Read file on windows
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x4836ae
mov eax, dword fs:[0]
push eax
sub esp, 0x248
mov eax, dword [0x4a4720]
xor eax, esp
mov dword [esp + 0x244], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4a4720]
xor eax, esp
push eax
lea eax, [esp + 0x25c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x26c]
mov eax, dword [esp + 0x274]
mov dword [esp + 0x28], ebp
mov esi, ecx
mov dword [esp + 0x1c], eax
xor edi, edi
mov dword [esp + 0x264], edi
mov dword [esp + 0x2c], edi
call fcn.004440b8
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x4340ca
push 0x80004005
call fcn.00401fc0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea ebx, [eax + 0x10]
mov dword [esp + 0x18], ebx
push edi
mov byte [esp + 0x268], 1
mov ecx, dword [esi + 4]
mov edx, dword [esi]
push edi
push ecx
push edx
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
mov edi, eax
test edi, edi
jne 0x43410b
mov ecx, dword [esp + 0x1c]
push 0x4938e0
call fcn.00401e90
jmp 0x43431e
add dword [esi], 0x224
push 0
lea eax, [esp + 0x30]
adc dword [esi + 4], 0
push eax
push 0x224
lea ecx, [esp + 0x3c]
push ecx
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edi, eax
test edi, edi
jne 0x434146
mov ecx, dword [esp + 0x1c]
push 0x4938e0
call fcn.00401e90
jmp 0x43431e
lea edx, [esp + 0x38]
push edx
lea eax, [esp + 0x274]
push eax
lea ecx, [esp + 0x2c]
push ecx
call fcn.004073c0
add esp, 0xc
mov byte [esp + 0x264], 2
mov ecx, dword [eax]
lea eax, [ecx - 0x10]
lea edi, [ebx - 0x10]
cmp eax, edi
je 0x4341c0
cmp dword [edi + 0xc], 0
lea ebp, [edi + 0xc]
jl 0x4341ae
mov edx, dword [eax]
cmp edx, dword [edi]
jne 0x4341ae
push eax
call fcn.00401fe0
mov ebx, eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [ebp], eax
dec eax
test eax, eax
jg 0x4341a5
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
call eax
add ebx, 0x10
mov dword [esp + 0x18], ebx
jmp 0x4341c0
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [esp + 0x20]
call fcn.00401da0
mov ebx, dword [esp + 0x18]
mov byte [esp + 0x264], 1
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4341e8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push ecx
mov ecx, dword [ebx - 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
lea ebp, [ebx - 0x10]
mov dword [esp + 0x24], esp
mov dword [esp + 0x24], esp
call eax
cmp dword [ebp + 0xc], 0
lea ecx, [ebp + 0xc]
jl 0x434219
cmp eax, dword [ebp]
jne 0x434219
mov edi, ebp
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x434255
mov ecx, dword [ebp + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 2
push ecx
mov ecx, eax
call edx
mov edi, eax
test edi, edi
jne 0x434232
call fcn.004303e0
mov eax, dword [ebp + 4]
mov dword [edi + 4], eax
mov eax, dword [ebp + 4]
lea ecx, [eax + eax + 2]
push ecx
lea edx, [ebp + 0x10]
push edx
lea eax, [eax + eax + 2]
push eax
lea ecx, [edi + 0x10]
push ecx
call fcn.00461715
add esp, 0x10
mov edx, dword [esp + 0x24]
add edi, 0x10
mov dword [edx], edi
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x34]
mov edx, dword [esi + 4]
push eax
mov eax, dword [esi]
push ecx
mov ecx, dword [esp + 0x34]
push edx
push eax
push ecx
mov ecx, dword [esp + 0x34]
call fcn.00433e10
mov edx, dword [esp + 0x30]
add dword [esi], edx
mov edi, eax
mov eax, dword [esp + 0x34]
adc dword [esi + 4], eax
test edi, edi
je 0x43431e
mov ecx, dword [esp + 0x250]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp dword [ebp + 0xc], 1
jle 0x4342ba
mov edx, dword [ebp + 4]
push edx
lea ecx, [esp + 0x1c]
call fcn.00401c30
mov ebx, dword [esp + 0x18]
push 0
push 0
push 3
push 0
push 3
push 0x100
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
xor eax, eax
cmp esi, 0xffffffff
setne al
mov edi, eax
test edi, edi
jne 0x4342f0
mov ecx, dword [esp + 0x1c]
push 0x49390c
call fcn.00401e90
jmp 0x43430e
lea ecx, [esp + 0x240]
push ecx
push 0
lea edx, [esp + 0x250]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
mov edi, 1
test esi, esi
je 0x43431e
cmp esi, 0xffffffff
je 0x43431e
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
add ebx, 0xfffffff0
mov byte [esp + 0x264], 0
lea eax, [ebx + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x434342
mov ecx, dword [ebx]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push ebx
call eax
mov dword [esp + 0x264], 0xffffffff
mov eax, dword [esp + 0x270]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x434370
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [esp + 0x25c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x244]
xor ecx, esp
call fcn.00461706
add esp, 0x254
ret 0xc