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

Disassembly:
push 0xffffffffffffffff
push 0x478ab0
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4a6eb0]
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 [0x4a743c]
mov edx, dword [eax + 0xc]
mov ecx, 0x4a743c
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 0x4829f8
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 0x41450b
mov esi, dword [esp + 0x2c]
push 0x481de0
mov ecx, esi
call fcn.00406310
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 0x4144dc
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 0x414504
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
jmp 0x414647
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.00468318
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.00468318
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 0x414595
xor eax, eax
jmp 0x4145af
mov eax, edi
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4145a0
sub eax, edx
sar eax, 1
push eax
push edi
lea ecx, [esp + 0x20]
call fcn.004028b0
test edi, edi
je 0x4145c7
push edi
call sub.MSVCR90.dll_void___cdecl_operator_delete___void__
add esp, 4
test esi, esi
je 0x4145d4
push esi
call sub.MSVCR90.dll_void___cdecl_operator_delete___void__
add esp, 4
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4145e6
push eax
call dword [sym.imp.MSVCR90.dll_fclose]
add esp, 4
mov esi, dword [esp + 0x18]
add esi, 0xfffffff0
push esi
call fcn.00401520
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 0x41461d
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 0x414645
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