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

Disassembly:
mov eax, 0x42998c
call fcn.0041efb8
sub esp, 0x30
push ebx
xor edx, edx
push esi
push edi
mov edi, ecx
xor ecx, ecx
lea eax, [edi + 0x120]
lea ebx, [edi + 0x7c]
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 [edi + 0x70], edx
mov dword [ebx], edx
mov dword [edi + 0x11c], 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.0041f3e0
push esp
push 0x431388
call fcn.0040e784
pop ecx
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [edi + 0x74], eax
call dword [0x5223ac]
push 0x94
mov dword [edi + 0x78], eax
mov eax, dword fs:[0x30]
lea esi, [edi + 0x84]
push 0
push esi
mov dword [edi + 0x80], eax
call fcn.0041e1f0
add esp, 0xc
mov dword [esi], 0x94
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [edi + 0x74]
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 + 0x118], edx
push 0
mov edx, 0x43139c
call fcn.0040ea8f
mov ecx, dword [edi + 0x74]
add esp, 8
mov edx, 0x4313b0
push 0
push 0
mov dword [edi], eax
call fcn.0040ea8f
mov ecx, dword [edi + 0x74]
add esp, 8
mov edx, 0x4313c4
push 0
push 0
mov dword [edi + 4], eax
call fcn.0040ea8f
mov ecx, dword [edi + 0x74]
add esp, 8
mov edx, 0x4313d4
push 0
push 0
mov dword [edi + 8], eax
call fcn.0040ea8f
mov dword [edi + 0xc], eax
mov ecx, dword [edi + 0x74]
add esp, 8
mov edx, 0x4313ec
push 0
push 0
call fcn.0040ea8f
mov ecx, dword [edi + 0x74]
add esp, 8
mov edx, 0x431404
push 0
push 0
mov dword [edi + 0x10], eax
call fcn.0040ea8f
mov ecx, dword [edi + 0x74]
add esp, 8
mov edx, 0x431420
push 0
push 0
mov dword [edi + 0x14], eax
call fcn.0040ea8f
mov ecx, dword [edi + 0x74]
add esp, 8
mov edx, 0x431440
push 0
push 0
mov dword [edi + 0x18], eax
call fcn.0040ea8f
mov ecx, dword [edi + 0x74]
add esp, 8
mov edx, 0x431460
push 0
push 0
mov dword [edi + 0x20], eax
call fcn.0040ea8f
mov ecx, dword [edi + 0x74]
add esp, 8
mov edx, 0x431484
push 0
push 0
mov dword [edi + 0x1c], eax
call fcn.0040ea8f
mov ecx, dword [edi + 0x74]
add esp, 8
mov edx, 0x4314a8
push 0
push 0
mov dword [edi + 0x24], eax
call fcn.0040ea8f
mov ecx, dword [edi + 0x74]
add esp, 8
mov edx, 0x4314c8
push 0
push 0
mov dword [edi + 0x28], eax
call fcn.0040ea8f
mov ecx, dword [edi + 0x74]
add esp, 8
mov edx, 0x4314e8
push 0
push 0
mov dword [edi + 0x2c], eax
call fcn.0040ea8f
mov ecx, dword [edi + 0x74]
add esp, 8
mov edx, 0x431504
push 0
push 0
mov dword [edi + 0x30], eax
call fcn.0040ea8f
mov ecx, dword [edi + 0x74]
add esp, 8
mov edx, 0x43151c
push 0
push 0
mov dword [edi + 0x34], eax
call fcn.0040ea8f
add esp, 8
mov dword [edi + 0x38], eax
push 0
push 0
mov edx, 0x431538
mov ecx, dword [edi + 0x74]
call fcn.0040ea8f
mov ecx, dword [edi + 0x74]
add esp, 8
mov edx, 0x431554
push 0
push 0
mov dword [edi + 0x3c], eax
call fcn.0040ea8f
mov ecx, dword [edi + 0x74]
add esp, 8
mov edx, 0x431574
push 0
push 0
mov dword [edi + 0x40], eax
call fcn.0040ea8f
mov ecx, dword [edi + 0x74]
add esp, 8
mov edx, 0x43158c
push 0
push 0
mov dword [edi + 0x44], eax
call fcn.0040ea8f
mov ecx, dword [edi + 0x74]
add esp, 8
mov edx, 0x4315a0
push 0
push 0
mov dword [edi + 0x48], eax
call fcn.0040ea8f
mov ecx, dword [edi + 0x74]
add esp, 8
mov edx, 0x4315c0
push 0
push 0
mov dword [edi + 0x4c], eax
call fcn.0040ea8f
mov ecx, dword [edi + 0x74]
add esp, 8
mov edx, 0x4315dc
push 0
push 0
mov dword [edi + 0x50], eax
call fcn.0040ea8f
mov dword [edi + 0x54], eax
mov eax, dword [edi + 0x118]
add esp, 0xc
mov ecx, 0x600
cmp eax, 0x501
jb 0x401604
cmp eax, ecx
jae 0x401604
or dword [edi + 0x11c], 1
mov edx, 0x601
cmp eax, ecx
jb 0x401618
cmp eax, edx
jae 0x401618
or dword [edi + 0x11c], 2
mov ecx, 0x602
cmp eax, edx
jb 0x40162c
cmp eax, ecx
jae 0x401630
or dword [edi + 0x11c], 4
cmp eax, ecx
jb 0x401637
or dword [edi + 0x11c], 8
mov edx, 0x603
cmp eax, ecx
jb 0x40164b
cmp eax, edx
jae 0x40164f
or dword [edi + 0x11c], 0x10
cmp eax, edx
jb 0x401656
or dword [edi + 0x11c], 0x20
mov ecx, edi
call fcn.00401743
push ebx
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [0x521e70]
test eax, eax
je 0x40172b
cmp dword [ebx], 0
je 0x40172b
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 [0x5221a0]
mov esi, dword [ebp - 0x14]
push esi
call fcn.0041ba57
push esi
mov ebx, eax
xor esi, esi
push esi
push ebx
mov dword [ebp - 0x20], ebx
call fcn.0041e1f0
mov byte [ebp - 4], 1
push dword [ebp - 0x14]
push esi
push ebx
call fcn.0041e1f0
add esp, 0x1c
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x14]
push ebx
push 1
push dword [edi + 0x7c]
call dword [0x5221a0]
test eax, eax
je 0x40171c
push dword [ebx]
call dword [0x521d2c]
test eax, eax
je 0x40171c
lea eax, [ebp - 0x18]
push eax
mov dword [ebp - 0x18], esi
push dword [ebx]
call dword [0x521574]
test eax, eax
je 0x40171c
push dword [ebp - 0x18]
lea ecx, [ebp - 0x38]
call fcn.00402238
mov byte [ebp - 4], 2
push eax
lea ecx, [edi + 0x120]
call fcn.0040225a
mov byte [ebp - 4], 1
push esi
push 1
lea ecx, [ebp - 0x38]
call fcn.0040252d
mov byte [ebp - 4], 0
test ebx, ebx
je 0x40172b
push ebx
call fcn.0041e280
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