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

Disassembly:
mov eax, 0x42912c
call fcn.0041e758
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.0041eb80
push esp
push 0x430388
call fcn.0040df27
pop ecx
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [edi + 0x74], eax
call dword [0x64150c]
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.0041d990
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, 0x43039c
call fcn.0040e232
mov ecx, dword [edi + 0x74]
add esp, 8
mov edx, 0x4303b0
push 0
push 0
mov dword [edi], eax
call fcn.0040e232
mov ecx, dword [edi + 0x74]
add esp, 8
mov edx, 0x4303c4
push 0
push 0
mov dword [edi + 4], eax
call fcn.0040e232
mov ecx, dword [edi + 0x74]
add esp, 8
mov edx, 0x4303d4
push 0
push 0
mov dword [edi + 8], eax
call fcn.0040e232
mov dword [edi + 0xc], eax
mov ecx, dword [edi + 0x74]
add esp, 8
mov edx, 0x4303ec
push 0
push 0
call fcn.0040e232
mov ecx, dword [edi + 0x74]
add esp, 8
mov edx, 0x430404
push 0
push 0
mov dword [edi + 0x10], eax
call fcn.0040e232
mov ecx, dword [edi + 0x74]
add esp, 8
mov edx, 0x430420
push 0
push 0
mov dword [edi + 0x14], eax
call fcn.0040e232
mov ecx, dword [edi + 0x74]
add esp, 8
mov edx, 0x430440
push 0
push 0
mov dword [edi + 0x18], eax
call fcn.0040e232
mov ecx, dword [edi + 0x74]
add esp, 8
mov edx, 0x430460
push 0
push 0
mov dword [edi + 0x20], eax
call fcn.0040e232
mov ecx, dword [edi + 0x74]
add esp, 8
mov edx, 0x430484
push 0
push 0
mov dword [edi + 0x1c], eax
call fcn.0040e232
mov ecx, dword [edi + 0x74]
add esp, 8
mov edx, 0x4304a8
push 0
push 0
mov dword [edi + 0x24], eax
call fcn.0040e232
mov ecx, dword [edi + 0x74]
add esp, 8
mov edx, 0x4304c8
push 0
push 0
mov dword [edi + 0x28], eax
call fcn.0040e232
mov ecx, dword [edi + 0x74]
add esp, 8
mov edx, 0x4304e8
push 0
push 0
mov dword [edi + 0x2c], eax
call fcn.0040e232
mov ecx, dword [edi + 0x74]
add esp, 8
mov edx, 0x430504
push 0
push 0
mov dword [edi + 0x30], eax
call fcn.0040e232
mov ecx, dword [edi + 0x74]
add esp, 8
mov edx, 0x43051c
push 0
push 0
mov dword [edi + 0x34], eax
call fcn.0040e232
add esp, 8
mov dword [edi + 0x38], eax
push 0
push 0
mov edx, 0x430538
mov ecx, dword [edi + 0x74]
call fcn.0040e232
mov ecx, dword [edi + 0x74]
add esp, 8
mov edx, 0x430554
push 0
push 0
mov dword [edi + 0x3c], eax
call fcn.0040e232
mov ecx, dword [edi + 0x74]
add esp, 8
mov edx, 0x430574
push 0
push 0
mov dword [edi + 0x40], eax
call fcn.0040e232
mov ecx, dword [edi + 0x74]
add esp, 8
mov edx, 0x43058c
push 0
push 0
mov dword [edi + 0x44], eax
call fcn.0040e232
mov ecx, dword [edi + 0x74]
add esp, 8
mov edx, 0x4305a0
push 0
push 0
mov dword [edi + 0x48], eax
call fcn.0040e232
mov ecx, dword [edi + 0x74]
add esp, 8
mov edx, 0x4305c0
push 0
push 0
mov dword [edi + 0x4c], eax
call fcn.0040e232
mov ecx, dword [edi + 0x74]
add esp, 8
mov edx, 0x4305dc
push 0
push 0
mov dword [edi + 0x50], eax
call fcn.0040e232
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 [0x63ff50]
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 [0x6403f0]
mov esi, dword [ebp - 0x14]
push esi
call fcn.0041b1f7
push esi
mov ebx, eax
xor esi, esi
push esi
push ebx
mov dword [ebp - 0x20], ebx
call fcn.0041d990
mov byte [ebp - 4], 1
push dword [ebp - 0x14]
push esi
push ebx
call fcn.0041d990
add esp, 0x1c
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x14]
push ebx
push 1
push dword [edi + 0x7c]
call dword [0x6403f0]
test eax, eax
je 0x40171c
push dword [ebx]
call dword [0x640718]
test eax, eax
je 0x40171c
lea eax, [ebp - 0x18]
push eax
mov dword [ebp - 0x18], esi
push dword [ebx]
call dword [0x640b10]
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.0041da20
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