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

Disassembly:
mov eax, 0x428e4c
call fcn.0041e3ec
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.0041e810
push esp
push 0x430388
call fcn.0040dce9
pop ecx
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [edi + 0x70], eax
call dword [0x658cfc]
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.0041d6c0
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.0040dff4
mov ecx, dword [edi + 0x70]
add esp, 8
mov edx, 0x4303b0
push 0
push 0
mov dword [edi], eax
call fcn.0040dff4
mov ecx, dword [edi + 0x70]
add esp, 8
mov edx, 0x4303c4
push 0
push 0
mov dword [edi + 4], eax
call fcn.0040dff4
mov ecx, dword [edi + 0x70]
add esp, 8
mov edx, 0x4303d4
push 0
push 0
mov dword [edi + 8], eax
call fcn.0040dff4
mov dword [edi + 0xc], eax
mov ecx, dword [edi + 0x70]
add esp, 8
mov edx, 0x4303ec
push 0
push 0
call fcn.0040dff4
mov ecx, dword [edi + 0x70]
add esp, 8
mov edx, 0x430404
push 0
push 0
mov dword [edi + 0x10], eax
call fcn.0040dff4
mov ecx, dword [edi + 0x70]
add esp, 8
mov edx, 0x430420
push 0
push 0
mov dword [edi + 0x14], eax
call fcn.0040dff4
mov ecx, dword [edi + 0x70]
add esp, 8
mov edx, 0x430440
push 0
push 0
mov dword [edi + 0x18], eax
call fcn.0040dff4
mov ecx, dword [edi + 0x70]
add esp, 8
mov edx, 0x430460
push 0
push 0
mov dword [edi + 0x20], eax
call fcn.0040dff4
mov ecx, dword [edi + 0x70]
add esp, 8
mov edx, 0x430484
push 0
push 0
mov dword [edi + 0x1c], eax
call fcn.0040dff4
mov ecx, dword [edi + 0x70]
add esp, 8
mov edx, 0x4304a8
push 0
push 0
mov dword [edi + 0x24], eax
call fcn.0040dff4
mov ecx, dword [edi + 0x70]
add esp, 8
mov edx, 0x4304c8
push 0
push 0
mov dword [edi + 0x28], eax
call fcn.0040dff4
mov ecx, dword [edi + 0x70]
add esp, 8
mov edx, 0x4304e8
push 0
push 0
mov dword [edi + 0x2c], eax
call fcn.0040dff4
mov ecx, dword [edi + 0x70]
add esp, 8
mov edx, 0x430504
push 0
push 0
mov dword [edi + 0x30], eax
call fcn.0040dff4
mov ecx, dword [edi + 0x70]
add esp, 8
mov edx, 0x43051c
push 0
push 0
mov dword [edi + 0x34], eax
call fcn.0040dff4
add esp, 8
mov dword [edi + 0x38], eax
push 0
push 0
mov edx, 0x430538
mov ecx, dword [edi + 0x70]
call fcn.0040dff4
mov ecx, dword [edi + 0x70]
add esp, 8
mov edx, 0x430554
push 0
push 0
mov dword [edi + 0x3c], eax
call fcn.0040dff4
mov ecx, dword [edi + 0x70]
add esp, 8
mov edx, 0x430574
push 0
push 0
mov dword [edi + 0x40], eax
call fcn.0040dff4
mov ecx, dword [edi + 0x70]
add esp, 8
mov edx, 0x43058c
push 0
push 0
mov dword [edi + 0x44], eax
call fcn.0040dff4
mov ecx, dword [edi + 0x70]
add esp, 8
mov edx, 0x4305ac
push 0
push 0
mov dword [edi + 0x48], eax
call fcn.0040dff4
mov ecx, dword [edi + 0x70]
add esp, 8
mov edx, 0x4305c8
push 0
push 0
mov dword [edi + 0x4c], eax
call fcn.0040dff4
mov dword [edi + 0x50], eax
mov eax, dword [edi + 0x114]
add esp, 0xc
mov ecx, 0x600
cmp eax, 0x501
jb 0x40158b
cmp eax, ecx
jae 0x40158b
or dword [edi + 0x118], 1
mov edx, 0x601
cmp eax, ecx
jb 0x40159f
cmp eax, edx
jae 0x40159f
or dword [edi + 0x118], 2
mov ecx, 0x602
cmp eax, edx
jb 0x4015b3
cmp eax, ecx
jae 0x4015b7
or dword [edi + 0x118], 4
cmp eax, ecx
jb 0x4015be
or dword [edi + 0x118], 8
mov edx, 0x603
cmp eax, ecx
jb 0x4015d2
cmp eax, edx
jae 0x4015d6
or dword [edi + 0x118], 0x10
cmp eax, edx
jb 0x4015dd
or dword [edi + 0x118], 0x20
mov ecx, edi
call fcn.004016ca
push ebx
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [0x658de0]
test eax, eax
je 0x4016b2
cmp dword [ebx], 0
je 0x4016b2
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 [0x659410]
mov esi, dword [ebp - 0x14]
push esi
call fcn.0041af27
push esi
mov ebx, eax
xor esi, esi
push esi
push ebx
mov dword [ebp - 0x20], ebx
call fcn.0041d6c0
mov byte [ebp - 4], 1
push dword [ebp - 0x14]
push esi
push ebx
call fcn.0041d6c0
add esp, 0x1c
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x14]
push ebx
push 1
push dword [edi + 0x78]
call dword [0x659410]
test eax, eax
je 0x4016a3
push dword [ebx]
call dword [0x65940c]
test eax, eax
je 0x4016a3
lea eax, [ebp - 0x18]
push eax
mov dword [ebp - 0x18], esi
push dword [ebx]
call dword [0x6599d0]
test eax, eax
je 0x4016a3
push dword [ebp - 0x18]
lea ecx, [ebp - 0x38]
call fcn.00402182
mov byte [ebp - 4], 2
push eax
lea ecx, [edi + 0x11c]
call fcn.004021a4
mov byte [ebp - 4], 1
push esi
push 1
lea ecx, [ebp - 0x38]
call fcn.00402477
mov byte [ebp - 4], 0
test ebx, ebx
je 0x4016b2
push ebx
call fcn.0041d750
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