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

Disassembly:
push 0xffffffffffffffff
push 0x5aa8e0
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x5f13cc]
xor eax, esp
mov dword [esp + 0x50], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5f13cc]
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.00474ab0
xor ebx, ebx
mov dword [esp + 0x74], ebx
mov edx, dword [esp + 0x18]
mov eax, dword [edx - 0xc]
cmp eax, ebx
jle 0x4da364
lea ecx, [eax - 1]
cmp ecx, ebx
jl 0x4da3d5
cmp ecx, eax
jg 0x4da3d5
movzx eax, word [edx + ecx*2]
cmp ax, 0x5c
je 0x4da364
push 0x5c
call fcn.00404400
push 0xa
push str.user2.dict
lea eax, [esp + 0x20]
push eax
call fcn.00403fc0
mov edx, dword [0x5fcd20]
mov eax, dword [edx + 0xc]
mov ecx, 0x5fcd20
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 0x4da3b7
mov ecx, 0x402
lea eax, [esp + 0x14]
call fcn.00403d50
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 0x4da3df
xor eax, eax
jmp 0x4da3f5
push 0x80070057
call fcn.00404550
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4da3e4
sub eax, edx
sar eax, 1
js 0x4da3d5
cmp eax, dword [esi - 8]
jg 0x4da3d5
mov dword [esi - 0xc], eax
push 0x2e
mov word [esi + eax*2], bx
push 0x5c
lea eax, [esp + 0x1c]
push eax
call fcn.004dbe80
push 0x2e
push 0x2f
lea ecx, [esp + 0x1c]
push ecx
call fcn.004dbe80
push 3
push 0x51554432
push str.._u._u
lea edi, [esp + 0x20]
call fcn.00403650
add esp, 0xc
call fcn.00431730
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.004d0410
mov edi, eax
cmp edi, ebx
jl 0x4da536
cmp dword [esp + 0x1c], ebx
jne 0x4da49f
mov eax, dword [esi]
cmp eax, ebx
je 0x4da471
call fcn.004d9db0
mov eax, dword [esi]
mov byte [eax + 0x10], bl
lea eax, [esp + 0x1c]
push eax
push ebx
push ebp
push 0x4da5b0
push ebx
push ebx
mov byte [ebp + 0x30], bl
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, ebx
jne 0x4da497
mov esi, dword [esi]
mov byte [esi + 0x10], 1
mov dword [ebp + 0x2c], eax
jmp 0x4da536
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 0x4da4c6
call fcn.004129d0
jmp 0x4da4c9
mov dword [ebp + 0x28], eax
push 0x3c
lea edx, [esp + 0x2c]
push ebx
push edx
mov dword [esp + 0x30], ebx
call fcn.00580260
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 0x4da501
call fcn.004129d0
cmp dword [esp + 0x24], 0x51554432
jne 0x4da525
cmp word [esp + 0x28], 3
jne 0x4da525
mov esi, dword [esi]
lea eax, [esi + 0x14]
lea ecx, [esp + 0x2c]
call fcn.004d9010
test eax, eax
jne 0x4da536
mov eax, dword [ebp + 0x28]
cmp eax, ebx
je 0x4da536
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 0x4da55a
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 0x4da582
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.005787fd
add esp, 0x64
ret 4