Function at 0x412e20
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x450198
mov eax, dword fs:[0]
push eax
sub esp, 0x148
mov eax, dword [0x460164]
xor eax, esp
mov dword [esp + 0x140], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x460164]
xor eax, esp
push eax
lea eax, [esp + 0x15c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x16c]
mov ebp, dword [esp + 0x170]
mov dword [esp + 0x34], eax
add eax, 0x10
push eax
lea eax, [esp + 0x30]
push eax
mov ebx, str.extensions.ini
call fcn.00401b30
add esp, 8
xor esi, esi
mov dword [esp + 0x164], esi
mov edx, dword [0x461acc]
mov eax, dword [edx + 0xc]
mov ecx, 0x461acc
call eax
add eax, 0x10
mov dword [esp + 0x24], eax
mov byte [esp + 0x164], 1
mov edx, dword [0x461acc]
mov eax, dword [edx + 0xc]
mov ecx, 0x461acc
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
mov byte [esp + 0x164], 2
mov dword [esp + 0x28], esi
mov edi, edi
mov ecx, dword [esp + 0x28]
push ecx
push str.Extension_d
lea edi, [esp + 0x2c]
call fcn.0041c3b0
push 0x104
lea edx, [esp + 0x58]
push 0
push edx
call fcn.00439d50
add esp, 0x14
lea eax, [esp + 0x2c]
lea esi, [esp + 0x40]
call fcn.00428190
mov eax, dword [eax]
mov ecx, dword [esp + 0x24]
push eax
push 0x104
lea eax, [esp + 0x54]
push eax
push str.Not_Find_
push ecx
push str.ExtensionDirs
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov eax, dword [esp + 0x40]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x412f46
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x50]
call fcn.0041b000
lea ecx, [esp + 0x20]
lea esi, [esp + 0x3c]
mov byte [esp + 0x164], 3
call fcn.004281f0
mov byte [esp + 0x164], 4
mov ecx, dword [eax]
mov esi, dword [esp + 0x18]
lea eax, [ecx - 0x10]
add esi, 0xfffffff0
cmp eax, esi
je 0x412fc3
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x412fb6
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x412fb6
call fcn.00401dd0
mov ebx, eax
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x412fad
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
add ebx, 0x10
mov dword [esp + 0x18], ebx
jmp 0x412fc3
mov ebx, dword [ecx - 0xc]
push ecx
lea eax, [esp + 0x1c]
call fcn.00401e40
mov byte [esp + 0x164], 3
mov eax, dword [esp + 0x3c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x412feb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x164], 2
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 0x413013
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x1c]
push ecx
mov ecx, str.Not_Find_
call fcn.0041b000
lea ecx, [esp + 0x1c]
lea esi, [esp + 0x38]
mov byte [esp + 0x164], 5
call fcn.004281d0
mov eax, dword [eax]
mov edx, dword [esp + 0x18]
push eax
push edx
call fcn.0043595f
add esp, 8
test eax, eax
mov eax, dword [esp + 0x38]
sete bl
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41306c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x164], 2
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x413094
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
jne 0x41311d
mov edx, dword [ebp + 4]
test edx, edx
jne 0x4130a7
xor ecx, ecx
jmp 0x4130af
mov ecx, dword [ebp + 8]
sub ecx, edx
sar ecx, 2
test edx, edx
je 0x4130f4
mov eax, dword [ebp + 0xc]
sub eax, edx
sar eax, 2
cmp ecx, eax
jae 0x4130f4
mov esi, dword [ebp + 8]
mov byte [esp + 0x30], 0
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x30]
push ecx
push edx
lea eax, [esp + 0x20]
push eax
push esi
mov ecx, 1
call fcn.0041c540
add esi, 4
add esp, 0x10
add dword [esp + 0x28], 1
mov dword [ebp + 8], esi
jmp 0x412ed0
mov esi, dword [ebp + 8]
cmp edx, esi
jbe 0x413100
call fcn.00435b3c
push esi
push ebp
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x50]
push edx
mov eax, ebp
call fcn.0041bc40
add dword [esp + 0x28], 1
jmp 0x412ed0
cmp dword [esp + 0x174], 0
jne 0x4131cd
mov eax, dword [esp + 0x34]
add eax, 0x10
push eax
lea eax, [esp + 0x24]
push eax
mov ebx, str.extensions_
call fcn.00401b30
mov ecx, dword [esp + 0x3c]
add ecx, 0x14
push ecx
lea edx, [esp + 0x28]
push edx
mov byte [esp + 0x174], 6
call fcn.00401b30
add esp, 0x10
mov edx, ebp
lea ecx, [esp + 0x20]
mov byte [esp + 0x164], 7
call fcn.00418b30
mov edx, ebp
lea ecx, [esp + 0x1c]
call fcn.00418b30
mov byte [esp + 0x164], 6
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4131a5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x164], 2
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 0x4131cd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x164], 1
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 0x4131f5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x164], 0
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 0x41321d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x164], 0xffffffff
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x413248
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x15c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x140]
xor ecx, esp
call fcn.00435245
add esp, 0x154
ret 0xc