Function at 0x519560
Capabilities:
Create thread
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x608ed0
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x6687b8]
xor eax, esp
mov dword [esp + 0x50], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x6687b8]
xor eax, esp
push eax
lea eax, [esp + 0x6c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x7c]
lea edi, [esp + 0x18]
call fcn.0047ac70
xor ebx, ebx
mov dword [esp + 0x74], ebx
mov edx, dword [esp + 0x18]
mov eax, dword [edx - 0xc]
cmp eax, ebx
jle 0x5195d4
lea ecx, [eax - 1]
cmp ecx, ebx
jl 0x519645
cmp ecx, eax
jg 0x519645
movzx eax, word [edx + ecx*2]
cmp ax, 0x5c
je 0x5195d4
push 0x5c
call fcn.0040af90
push 0xa
push str.user2.dict
lea eax, [esp + 0x20]
push eax
call fcn.0040aee0
mov edx, dword [0x677600]
mov eax, dword [edx + 0xc]
mov ecx, 0x677600
call eax
lea esi, [eax + 0x10]
mov dword [esp + 0x14], esi
mov byte [esp + 0x74], 1
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x402
or eax, ecx
jge 0x519627
mov ecx, 0x402
lea eax, [esp + 0x14]
call fcn.00403540
mov esi, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x20]
push ecx
push esi
push 0x400
push edx
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
cmp esi, ebx
jne 0x51964f
xor eax, eax
jmp 0x519665
push 0x80070057
call fcn.00403650
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x519654
sub eax, edx
sar eax, 1
js 0x519645
cmp eax, dword [esi - 8]
jg 0x519645
mov dword [esi - 0xc], eax
push 0x2e
mov word [esi + eax*2], bx
push 0x5c
lea eax, [esp + 0x1c]
push eax
call fcn.004f5360
push 0x2e
push 0x2f
lea ecx, [esp + 0x1c]
push ecx
call fcn.004f5360
push 3
push 3
push 0x51554432
push str.._u._u._u
lea edi, [esp + 0x24]
call fcn.0040e190
add esp, 0x10
call fcn.00431780
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x1c]
lea esi, [ebp + 8]
push edx
mov eax, 0x2000000
mov edx, esi
mov dword [esp + 0x20], ebx
call fcn.0050de80
mov edi, eax
cmp edi, ebx
jl 0x5197a8
cmp dword [esp + 0x1c], ebx
jne 0x519711
mov eax, dword [esi]
cmp eax, ebx
je 0x5196e3
call fcn.00518f70
mov eax, dword [esi]
mov byte [eax + 0x18], bl
lea eax, [esp + 0x1c]
push eax
push ebx
push ebp
push 0x519820
push ebx
push ebx
mov byte [ebp + 0x30], bl
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, ebx
jne 0x519709
mov esi, dword [esi]
mov byte [esi + 0x18], 1
mov dword [ebp + 0x2c], eax
jmp 0x5197a8
mov ecx, dword [esp + 0x18]
push ebx
push 0x80
push 3
push ebx
push 3
push 0xc0000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x519738
call fcn.0040f010
jmp 0x51973b
mov dword [ebp + 0x28], eax
push 0x3c
lea edx, [esp + 0x2c]
push ebx
push edx
mov dword [esp + 0x30], ebx
call fcn.005da970
mov edx, dword [ebp + 0x28]
add esp, 0xc
push ebx
lea eax, [esp + 0x20]
push eax
push 0x40
lea ecx, [esp + 0x30]
push ecx
push edx
mov dword [esp + 0x30], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, ebx
jne 0x519773
call fcn.0040f010
cmp dword [esp + 0x24], 0x51554432
jne 0x519797
cmp word [esp + 0x28], 3
jne 0x519797
mov esi, dword [esi]
lea eax, [esi + 0x1c]
lea ecx, [esp + 0x2c]
call fcn.00517270
test eax, eax
jne 0x5197a8
mov eax, dword [ebp + 0x28]
cmp eax, ebx
je 0x5197a8
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp + 0x28], ebx
mov byte [esp + 0x74], bl
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x5197cc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x74], 0xffffffff
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x5197f4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [esp + 0x6c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x50]
xor ecx, esp
call fcn.005d28b3
add esp, 0x64
ret 4