Function at 0x40e640
Capabilities:
Access peb ldr_data
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x448bb2
mov eax, dword fs:[0]
push eax
sub esp, 0x134
mov eax, dword [0x457118]
xor eax, esp
mov dword [esp + 0x130], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x457118]
xor eax, esp
push eax
lea eax, [esp + 0x148]
mov dword fs:[0], eax
mov eax, dword [esp + 0x158]
mov dword [esp + 0x30], eax
add eax, 4
push eax
lea edx, [esp + 0x28]
push edx
mov ebx, str.extensions.ini
mov dword [esp + 0x30], ecx
call fcn.004017d0
add esp, 8
xor esi, esi
mov dword [esp + 0x150], esi
mov eax, dword [0x458a2c]
mov edx, dword [eax + 0xc]
mov ecx, 0x458a2c
call edx
add eax, 0x10
mov dword [esp + 0x20], eax
mov byte [esp + 0x150], 1
mov eax, dword [0x458a2c]
mov edx, dword [eax + 0xc]
mov ecx, 0x458a2c
call edx
lea ebp, [eax + 0x10]
mov dword [esp + 0x1c], ebp
mov byte [esp + 0x150], 2
mov dword [esp + 0x14], esi
lea esp, [esp]
mov eax, dword [esp + 0x14]
push eax
push str.Extension_d
lea edi, [esp + 0x28]
call fcn.00416450
push 0x104
lea ecx, [esp + 0x48]
push 0
push ecx
call fcn.00432ba0
mov edi, dword [esp + 0x38]
mov ecx, dword [edi - 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
add edi, 0xfffffff0
add esp, 0x10
mov dword [esp + 0x30], esp
mov esi, esp
call eax
cmp dword [edi + 0xc], 0
lea edx, [edi + 0xc]
jl 0x40e748
cmp eax, dword [edi]
jne 0x40e748
mov ebx, edi
mov ecx, 1
lock xadd dword [edx], ecx
jmp 0x40e783
mov ecx, dword [edi + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 2
push ecx
mov ecx, eax
call edx
mov ebx, eax
test ebx, ebx
je 0x40e8df
mov eax, dword [edi + 4]
mov dword [ebx + 4], eax
mov eax, dword [edi + 4]
lea ecx, [eax + eax + 2]
push ecx
add edi, 0x10
lea edx, [eax + eax + 2]
push edi
push edx
lea eax, [ebx + 0x10]
push eax
call fcn.0042e426
add esp, 0x10
add ebx, 0x10
mov dword [esi], ebx
lea ebx, [esp + 0x1c]
call fcn.004212e0
mov eax, dword [eax]
mov edx, dword [esp + 0x24]
add esp, 4
push eax
push 0x104
lea ecx, [esp + 0x44]
push ecx
push str.Not_Find_
push edx
push str.ExtensionDirs
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
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 0x40e7d6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push ecx
mov ecx, esp
mov dword [esp + 0x30], esp
push ecx
lea ecx, [esp + 0x44]
call fcn.00414fd0
lea ebx, [esp + 0x38]
call fcn.00421510
add esp, 4
mov byte [esp + 0x150], 3
mov ecx, dword [eax]
lea eax, [ecx - 0x10]
lea edi, [ebp - 0x10]
cmp eax, edi
je 0x40e84d
cmp dword [edi + 0xc], 0
lea esi, [edi + 0xc]
jl 0x40e83c
mov edx, dword [eax]
cmp edx, dword [edi]
jne 0x40e83c
call fcn.00401a70
mov ebx, eax
or eax, 0xffffffff
lock xadd dword [esi], eax
dec eax
test eax, eax
jg 0x40e833
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
call eax
lea ebp, [ebx + 0x10]
mov dword [esp + 0x1c], ebp
jmp 0x40e84d
mov ebx, dword [ecx - 0xc]
push ecx
lea eax, [esp + 0x20]
call fcn.00401ae0
mov ebp, dword [esp + 0x1c]
mov byte [esp + 0x150], 2
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e875
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push ecx
mov ecx, esp
mov dword [esp + 0x30], esp
push ecx
mov ecx, str.Not_Find_
call fcn.00414fd0
lea ebx, [esp + 0x3c]
call fcn.00421400
mov eax, dword [eax]
add esp, 4
push eax
push ebp
call fcn.0042ec21
add esp, 8
test eax, eax
mov eax, dword [esp + 0x38]
sete bl
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40e8c4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
jne 0x40e8e4
mov esi, dword [esp + 0x28]
lea ebx, [esp + 0x1c]
call fcn.00415a10
add dword [esp + 0x14], 1
jmp 0x40e6f0
call fcn.004161c0
cmp dword [esp + 0x15c], 0
jne 0x40e998
mov eax, dword [esp + 0x30]
add eax, 4
push eax
lea ecx, [esp + 0x1c]
push ecx
mov ebx, str.extensions_
call fcn.004017d0
mov edx, dword [esp + 0x38]
add edx, 8
push edx
lea eax, [esp + 0x20]
push eax
mov byte [esp + 0x160], 4
call fcn.004017d0
add esp, 0x10
mov esi, dword [esp + 0x28]
mov edx, esi
lea ecx, [esp + 0x18]
mov byte [esp + 0x150], 5
call fcn.00413fa0
mov edx, esi
lea ecx, [esp + 0x14]
call fcn.00413fa0
mov byte [esp + 0x150], 4
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 0x40e970
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x150], 2
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 0x40e998
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebp - 0x10]
mov byte [esp + 0x150], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e9bc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x150], 0
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e9e4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x150], 0xffffffff
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ea0f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x148]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x130]
xor ecx, esp
call fcn.0042e417
add esp, 0x140
ret 8