Function at 0x4012fc
Capabilities:
Access peb ldr_data
Get process filename
Resolve function by parsing pe exports

Disassembly:
mov eax, 0x42944c
call fcn.0041e9fc
sub esp, 0x30
push ebx
xor edx, edx
push esi
push edi
mov edi, ecx
xor ecx, ecx
lea eax, [edi + 0x11c]
lea ebx, [edi + 0x78]
mov dword [edi + 0x54], edx
mov dword [edi + 0x58], edx
mov dword [edi + 0x5c], edx
mov dword [edi + 0x60], edx
mov dword [edi + 0x64], edx
mov dword [edi + 0x68], edx
mov dword [edi + 0x6c], edx
mov dword [ebx], edx
mov dword [edi + 0x118], edx
mov dword [eax + 0x14], 7
mov dword [eax + 0x10], edx
mov dword [ebp - 0x1c], edi
mov word [eax], cx
mov dword [ebp - 4], edx
push 0x18
pop eax
call fcn.0041ee20
push esp
push 0x430388
call fcn.0040e19c
pop ecx
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [edi + 0x70], eax
call dword [0x654444]
push 0x94
mov dword [edi + 0x74], eax
mov eax, dword fs:[0x30]
lea esi, [edi + 0x80]
push 0
push esi
mov dword [edi + 0x7c], eax
call fcn.0041dcd0
add esp, 0xc
mov dword [esi], 0x94
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [edi + 0x70]
push ecx
mov eax, dword [ecx + 0x3c]
push 0
movzx edx, word [eax + ecx + 0x40]
movzx eax, word [eax + ecx + 0x42]
shl edx, 8
or edx, eax
mov dword [edi + 0x114], edx
push 0
mov edx, 0x43039c
call fcn.0040e4a7
mov ecx, dword [edi + 0x70]
add esp, 8
mov edx, 0x4303b0
push 0
push 0
mov dword [edi], eax
call fcn.0040e4a7
mov ecx, dword [edi + 0x70]
add esp, 8
mov edx, 0x4303c4
push 0
push 0
mov dword [edi + 4], eax
call fcn.0040e4a7
mov ecx, dword [edi + 0x70]
add esp, 8
mov edx, 0x4303d4
push 0
push 0
mov dword [edi + 8], eax
call fcn.0040e4a7
mov dword [edi + 0xc], eax
mov ecx, dword [edi + 0x70]
add esp, 8
mov edx, 0x4303ec
push 0
push 0
call fcn.0040e4a7
mov ecx, dword [edi + 0x70]
add esp, 8
mov edx, 0x430404
push 0
push 0
mov dword [edi + 0x10], eax
call fcn.0040e4a7
mov ecx, dword [edi + 0x70]
add esp, 8
mov edx, 0x430420
push 0
push 0
mov dword [edi + 0x14], eax
call fcn.0040e4a7
mov ecx, dword [edi + 0x70]
add esp, 8
mov edx, 0x430440
push 0
push 0
mov dword [edi + 0x18], eax
call fcn.0040e4a7
mov ecx, dword [edi + 0x70]
add esp, 8
mov edx, 0x430460
push 0
push 0
mov dword [edi + 0x20], eax
call fcn.0040e4a7
mov ecx, dword [edi + 0x70]
add esp, 8
mov edx, 0x430484
push 0
push 0
mov dword [edi + 0x1c], eax
call fcn.0040e4a7
mov ecx, dword [edi + 0x70]
add esp, 8
mov edx, 0x4304a8
push 0
push 0
mov dword [edi + 0x24], eax
call fcn.0040e4a7
mov ecx, dword [edi + 0x70]
add esp, 8
mov edx, 0x4304c8
push 0
push 0
mov dword [edi + 0x28], eax
call fcn.0040e4a7
mov ecx, dword [edi + 0x70]
add esp, 8
mov edx, 0x4304e8
push 0
push 0
mov dword [edi + 0x2c], eax
call fcn.0040e4a7
mov ecx, dword [edi + 0x70]
add esp, 8
mov edx, 0x430504
push 0
push 0
mov dword [edi + 0x30], eax
call fcn.0040e4a7
mov ecx, dword [edi + 0x70]
add esp, 8
mov edx, 0x43051c
push 0
push 0
mov dword [edi + 0x34], eax
call fcn.0040e4a7
add esp, 8
mov dword [edi + 0x38], eax
push 0
push 0
mov edx, 0x430538
mov ecx, dword [edi + 0x70]
call fcn.0040e4a7
mov ecx, dword [edi + 0x70]
add esp, 8
mov edx, 0x430554
push 0
push 0
mov dword [edi + 0x3c], eax
call fcn.0040e4a7
mov ecx, dword [edi + 0x70]
add esp, 8
mov edx, 0x430574
push 0
push 0
mov dword [edi + 0x40], eax
call fcn.0040e4a7
mov ecx, dword [edi + 0x70]
add esp, 8
mov edx, 0x43058c
push 0
push 0
mov dword [edi + 0x44], eax
call fcn.0040e4a7
mov ecx, dword [edi + 0x70]
add esp, 8
mov edx, 0x4305ac
push 0
push 0
mov dword [edi + 0x48], eax
call fcn.0040e4a7
mov ecx, dword [edi + 0x70]
add esp, 8
mov edx, 0x4305c8
push 0
push 0
mov dword [edi + 0x4c], eax
call fcn.0040e4a7
mov dword [edi + 0x50], eax
mov eax, dword [edi + 0x114]
add esp, 0xc
mov ecx, 0x600
cmp eax, 0x501
jb 0x4015b7
cmp eax, ecx
jae 0x4015b7
or dword [edi + 0x118], 1
mov edx, 0x601
cmp eax, ecx
jb 0x4015cb
cmp eax, edx
jae 0x4015cb
or dword [edi + 0x118], 2
mov ecx, 0x602
cmp eax, edx
jb 0x4015df
cmp eax, ecx
jae 0x4015e3
or dword [edi + 0x118], 4
cmp eax, ecx
jb 0x4015ea
or dword [edi + 0x118], 8
mov edx, 0x603
cmp eax, ecx
jb 0x4015fe
cmp eax, edx
jae 0x401602
or dword [edi + 0x118], 0x10
cmp eax, edx
jb 0x401609
or dword [edi + 0x118], 0x20
mov ecx, edi
call fcn.004016f6
push ebx
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [0x65439c]
test eax, eax
je 0x4016de
cmp dword [ebx], 0
je 0x4016de
xor ecx, ecx
lea eax, [ebp - 0x14]
push eax
push ecx
push ecx
push 1
push dword [ebx]
mov dword [ebp - 0x14], ecx
call dword [0x65538c]
mov esi, dword [ebp - 0x14]
push esi
call fcn.0041b537
push esi
mov ebx, eax
xor esi, esi
push esi
push ebx
mov dword [ebp - 0x20], ebx
call fcn.0041dcd0
mov byte [ebp - 4], 1
push dword [ebp - 0x14]
push esi
push ebx
call fcn.0041dcd0
add esp, 0x1c
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x14]
push ebx
push 1
push dword [edi + 0x78]
call dword [0x65538c]
test eax, eax
je 0x4016cf
push dword [ebx]
call dword [0x655698]
test eax, eax
je 0x4016cf
lea eax, [ebp - 0x18]
push eax
mov dword [ebp - 0x18], esi
push dword [ebx]
call dword [0x655994]
test eax, eax
je 0x4016cf
push dword [ebp - 0x18]
lea ecx, [ebp - 0x38]
call fcn.00402173
mov byte [ebp - 4], 2
push eax
lea ecx, [edi + 0x11c]
call fcn.00402195
mov byte [ebp - 4], 1
push esi
push 1
lea ecx, [ebp - 0x38]
call fcn.00402468
mov byte [ebp - 4], 0
test ebx, ebx
je 0x4016de
push ebx
call fcn.0041dd60
pop ecx
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x48]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret