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

Disassembly:
push 0xffffffffffffffff
push 0x475f40
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4a3eb0]
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 [0x4a440c]
mov edx, dword [eax + 0xc]
mov ecx, 0x4a440c
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 0x47f7f8
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 0x41287b
mov esi, dword [esp + 0x2c]
push 0x47ed68
mov ecx, esi
call fcn.004062c0
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 0x41284c
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 0x412874
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
jmp 0x4129b7
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.00465a98
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.00465a98
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 0x412905
xor eax, eax
jmp 0x41291f
mov eax, edi
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x412910
sub eax, edx
sar eax, 1
push eax
push edi
lea ecx, [esp + 0x20]
call fcn.00402860
test edi, edi
je 0x412937
push edi
call sub.MSVCR90.dll_void___cdecl_operator_delete___void__
add esp, 4
test esi, esi
je 0x412944
push esi
call sub.MSVCR90.dll_void___cdecl_operator_delete___void__
add esp, 4
mov eax, dword [esp + 0x14]
test eax, eax
je 0x412956
push eax
call dword [sym.imp.MSVCR90.dll_fclose]
add esp, 4
mov esi, dword [esp + 0x18]
add esi, 0xfffffff0
push esi
call fcn.00401510
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 0x41298d
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 0x4129b5
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