Function at 0x413dd0
Capabilities:
Access peb ldr_data
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x478320
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4a5eb0]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esp + 0x18], ebx
mov eax, dword [0x4a643c]
mov edx, dword [eax + 0xc]
mov ecx, 0x4a643c
mov dword [esp + 0x24], ebx
mov dword [esp + 0x14], ebx
call edx
lea edi, [eax + 0x10]
mov dword [esp + 0x18], edi
mov eax, dword [esp + 0x30]
push 0x481880
push eax
lea ecx, [esp + 0x1c]
push ecx
mov byte [esp + 0x30], 1
call dword [sym.imp.MSVCR90.dll__wfopen_s]
mov edx, dword [esp + 0x20]
mov esi, dword [sym.imp.MSVCR90.dll_fseek]
push 2
push ebx
push edx
call esi
add esp, 0x18
cmp eax, ebx
je 0x413eab
mov esi, dword [esp + 0x2c]
push 0x480de0
mov ecx, esi
call fcn.00406300
lea eax, [edi - 0x10]
mov byte [esp + 0x24], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x413e7c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
mov dword [esp + 0x24], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x413ea4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
jmp 0x413fe7
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.MSVCR90.dll_ftell]
mov edx, dword [esp + 0x18]
push ebx
push ebx
push edx
mov edi, eax
call esi
lea eax, [edi + 1]
push eax
call fcn.00467b98
mov ecx, dword [esp + 0x28]
push ecx
push edi
mov esi, eax
push 1
push esi
call dword [sym.imp.MSVCR90.dll_fread]
add esp, 0x24
push ebx
push ebx
push 0xffffffffffffffff
push esi
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0xfde9
mov byte [eax + esi], 0
call ebx
xor ecx, ecx
mov ebp, eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00467b98
mov edi, eax
lea eax, [ebp + ebp]
push eax
push 0
push edi
call sub.MSVCR90.dll_memset
add esp, 0x10
push ebp
push edi
push 0xffffffffffffffff
push esi
push 0
push 0xfde9
call ebx
test edi, edi
jne 0x413f35
xor eax, eax
jmp 0x413f4f
mov eax, edi
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x413f40
sub eax, edx
sar eax, 1
push eax
push edi
lea ecx, [esp + 0x20]
call fcn.004028b0
test edi, edi
je 0x413f67
push edi
call sub.MSVCR90.dll_void___cdecl_operator_delete___void__
add esp, 4
test esi, esi
je 0x413f74
push esi
call sub.MSVCR90.dll_void___cdecl_operator_delete___void__
add esp, 4
mov eax, dword [esp + 0x14]
test eax, eax
je 0x413f86
push eax
call dword [sym.imp.MSVCR90.dll_fclose]
add esp, 4
mov esi, dword [esp + 0x18]
add esi, 0xfffffff0
push esi
call fcn.004014f0
mov edi, dword [esp + 0x30]
add eax, 0x10
add esp, 4
mov dword [edi], eax
mov byte [esp + 0x24], 0
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x413fbd
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
mov dword [esp + 0x24], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x413fe5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 8