Function at 0x406ba0
Capabilities:
Access peb ldr_data
Get file version info
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x41c6bb
mov eax, dword fs:[0]
push eax
sub esp, 0x170
mov eax, dword [0x423044]
xor eax, esp
mov dword [esp + 0x168], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x423044]
xor eax, esp
push eax
lea eax, [esp + 0x184]
mov dword fs:[0], eax
mov eax, dword [esp + 0x194]
mov esi, edx
push 0x104
push esi
lea edx, [esp + 0x7c]
push edx
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], ecx
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov eax, dword [0x424614]
mov edx, dword [eax + 0xc]
xor ebx, ebx
mov ecx, 0x424614
mov dword [esp + 0x18], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x38], ebx
xor ebp, ebp
call edx
add eax, 0x10
mov dword [esp + 0x1c], eax
push 0x5c
push esi
mov dword [esp + 0x194], ebx
call fcn.0040bc20
add esp, 8
add eax, 1
jne 0x406c3e
xor ecx, ecx
jmp 0x406c4e
mov ecx, eax
lea edi, [ecx + 1]
mov dl, byte [ecx]
add ecx, 1
cmp dl, bl
jne 0x406c43
sub ecx, edi
push eax
mov edi, ecx
lea eax, [esp + 0x20]
call fcn.004094d0
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x78]
push ecx
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov edi, eax
cmp edi, ebx
jne 0x406d19
push esi
lea ecx, [esp + 0x58]
call fcn.00406e20
movzx eax, al
add esp, 4
cmp eax, ebx
jne 0x406d8e
mov eax, dword [esp + 0x40]
lea edx, [esp + 0x44]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x48]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_SystemTimeToTzSpecificLocalTime]
movzx eax, word [esp + 0x2a]
movzx ecx, word [esp + 0x28]
movzx edx, word [esp + 0x20]
push eax
movzx eax, word [esp + 0x2a]
push ecx
movzx ecx, word [esp + 0x2a]
push edx
push eax
push ecx
lea edx, [esp + 0x68]
push str._02d__02d__d___02d:_02d
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
movzx eax, word [esp + 0x48]
movzx ecx, word [esp + 0x46]
movzx edx, word [esp + 0x44]
add esp, 0x1c
push eax
movzx eax, word [esp + 0x2a]
push ecx
movzx ecx, word [esp + 0x2a]
push edx
movzx edx, word [esp + 0x2c]
push eax
push ecx
push edx
push str._04d_02d_02d_02d_02d_02d
push 0x1f
lea eax, [esp + 0x74]
push 0x20
push eax
call fcn.0040c7c0
add esp, 0x28
jmp 0x406d8e
push edi
call fcn.0040c6e1
mov ebp, eax
add esp, 4
cmp ebp, ebx
mov dword [ebp], ebx
je 0x406dbe
mov ecx, dword [esp + 0x30]
push ebp
push edi
push ecx
lea edx, [esp + 0x80]
push edx
call sub.VERSION.dll_GetFileVersionInfoA
cmp eax, ebx
je 0x406dab
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x38]
push ecx
push 0x41fcf4
push ebp
call sub.VERSION.dll_VerQueryValueA
cmp eax, ebx
je 0x406dab
mov eax, dword [esp + 0x34]
movzx edx, word [eax + 0xc]
movzx ecx, word [eax + 0xe]
push edx
movzx edx, word [eax + 8]
movzx eax, word [eax + 0xa]
push ecx
push edx
push eax
push str._04d_02d_02d_02d
push 0x1f
lea ecx, [esp + 0x6c]
push 0x20
push ecx
call fcn.0040c7c0
add esp, 0x20
mov eax, dword [esp + 0x3c]
push 0x20
lea edx, [esp + 0x58]
push edx
push 0x20
push eax
call fcn.0040cf64
add esp, 0x10
mov esi, 1
jmp 0x406daf
mov esi, dword [esp + 0x18]
cmp ebp, ebx
je 0x406dc2
push ebp
call fcn.0040c2cb
add esp, 4
jmp 0x406dc2
mov esi, dword [esp + 0x18]
mov dword [esp + 0x18c], 0xffffffff
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 0x406ded
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x184]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x168]
xor ecx, esp
call fcn.0040af86
add esp, 0x17c
ret