Function at 0x4b7490
Capabilities:
Check os version
Get keyboard layout
Query environment variable
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x52bf33
push eax
mov eax, 0x51f4
mov dword fs:[0], esp
call fcn.004c79b0
mov al, byte [esp + 0x5204]
push ebx
mov ebx, ecx
push ebp
push esi
push edi
lea ebp, [ebx + 0x3c]
mov byte [ebx + 0x4c], al
mov dword [esp + 0x48], ebx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 4]
push eax
push ecx
mov ecx, ebp
call fcn.004bcce0
mov ecx, ebx
call fcn.004bbb50
lea ecx, [ebx + 0x14]
call fcn.004bc020
lea ecx, [ebx + 0x28]
mov dword [esp + 0x120], ecx
call fcn.004bca50
xor esi, esi
mov dword [esp + 0x30], esi
lea ecx, [esp + 0x4e]
lea edx, [esp + 0x4d]
push ecx
push esi
push edx
lea ecx, [esp + 0xd0]
mov dword [esp + 0x5218], esi
call fcn.004bcdd0
mov eax, dword [0x572084]
mov byte [esp + 0x520c], 1
cmp eax, 6
jl 0x4b7c1d
lea eax, [esp + 0x30]
push eax
push 0x568c98
push 0x17
push esi
push 0x53ba4c
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x4b7c1d
mov dword [esp + 0x14], esi
mov ecx, dword [esp + 0x30]
push 0x568c88
lea edx, [esp + 0x18]
push ecx
push edx
mov byte [esp + 0x5218], 2
call fcn.00416d10
cmp dword [esp + 0x14], esi
je 0x4b7bbf
mov dword [esp + 0x34], esi
mov eax, dword [esp + 0x30]
lea edx, [esp + 0x34]
push edx
push esi
mov ecx, dword [eax]
push eax
mov byte [esp + 0x5218], 3
call dword [ecx + 0x40]
test eax, eax
jl 0x4b7bc9
mov eax, dword [esp + 0x34]
lea edx, [esp + 0xd8]
push esi
push edx
mov ecx, dword [eax]
push 1
push eax
call dword [ecx + 0x10]
cmp eax, 1
je 0x4b7a02
mov ecx, 4
mov edi, 0x53baec
lea esi, [esp + 0xec]
xor eax, eax
repe cmpsd dword [esi], dword es:[edi]
jne 0x4b79e1
lea ecx, [esp + 0x4c]
push ecx
lea ecx, [esp + 0x98]
call fcn.00454330
lea edx, [esp + 0xe8]
push eax
push edx
lea ecx, [esp + 0x1f8]
mov byte [esp + 0x5214], 4
call fcn.004bbc60
push eax
lea eax, [esp + 0x68]
push eax
mov ecx, ebx
mov byte [esp + 0x5214], 5
call fcn.004bba60
mov esi, dword [eax]
lea ecx, [esp + 0x1f4]
mov byte [esp + 0x520c], 4
call fcn.004bb780
lea ecx, [esp + 0x94]
mov byte [esp + 0x520c], 3
call fcn.004bb780
lea ecx, [esp + 0x4f]
lea edx, [esp + 0x1a]
add esi, 0x10
push ecx
push edx
lea ecx, [esp + 0x1d0]
mov dword [esp + 0x24], esi
call fcn.004bc220
push eax
lea eax, [esp + 0xec]
push eax
lea ecx, [esp + 0x1b0]
mov byte [esp + 0x5214], 6
call fcn.004bc0c0
lea ecx, [esp + 0x74]
push eax
push ecx
lea ecx, [ebx + 0x14]
mov byte [esp + 0x5214], 7
call fcn.004bbf30
mov esi, dword [eax]
lea ecx, [esp + 0x1ac]
mov byte [esp + 0x520c], 6
call fcn.004bc380
lea ecx, [esp + 0x1c8]
mov byte [esp + 0x520c], 3
call fcn.004bc380
xor eax, eax
lea edx, [esp + 0x20]
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
lea eax, [esp + 0xd8]
lea edi, [esi + 0x10]
mov esi, dword [sym.imp.ole32.dll_StringFromCLSID]
push edx
push eax
call esi
lea ecx, [esp + 0x24]
lea edx, [esp + 0x100]
push ecx
push edx
call esi
mov ecx, dword [esp + 0xe8]
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
and ecx, 0xffff
push eax
push ecx
push edx
lea eax, [esp + 0x3210]
push 0x568bfc
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
lea ecx, [esp + 0x64]
lea edx, [esp + 0x3218]
push ecx
push edx
call fcn.004a2910
add esp, 0x1c
test eax, eax
jne 0x4b7734
mov dword [esp + 0x50], eax
mov al, byte [esp + 0x1a]
mov esi, dword [esp + 0x24]
push 0
lea ecx, [esp + 0xa8]
mov byte [esp + 0xa8], al
call fcn.0040d630
push esi
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 4
lea ecx, [esp + 0xa4]
push eax
push esi
call fcn.0040fea0
mov cl, byte [esp + 0x1a]
mov esi, dword [esp + 0x20]
mov byte [esp + 0xb4], cl
push 0
lea ecx, [esp + 0xb8]
mov byte [esp + 0x5210], 8
call fcn.0040d630
push esi
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 4
lea ecx, [esp + 0xb4]
push eax
push esi
call fcn.0040fea0
lea edx, [esp + 0x1b]
lea eax, [esp + 0x13]
push edx
push eax
lea ecx, [esp + 0x1e4]
mov byte [esp + 0x5214], 9
call fcn.004299f0
lea ecx, [esp + 0xb4]
push eax
push ecx
lea ecx, [esp + 0x170]
mov byte [esp + 0x5214], 0xa
call fcn.004bc440
lea edx, [esp + 0x54]
push eax
push edx
mov ecx, edi
mov byte [esp + 0x5214], 0xb
call fcn.004bc290
mov esi, dword [eax]
lea ecx, [esp + 0x168]
mov byte [esp + 0x520c], 0xa
call fcn.0042bbb0
lea ecx, [esp + 0x1dc]
mov byte [esp + 0x520c], 9
call fcn.004bc680
lea eax, [esp + 0x11c]
lea ecx, [esp + 0xa4]
push eax
push ecx
lea ecx, [esp + 0x19c]
add esi, 0x1c
mov dword [esp + 0x124], 0
call fcn.004bc810
lea edx, [esp + 0x38]
push eax
push edx
mov ecx, esi
mov byte [esp + 0x5214], 0xc
call fcn.004bc590
mov esi, dword [eax]
push 1
lea ecx, [esp + 0x198]
mov byte [esp + 0x5210], 9
call fcn.0040d630
mov eax, dword [esp + 0x50]
mov byte [esp + 0x520c], 8
mov dword [esi + 0x1c], eax
push 1
lea ecx, [esp + 0xb8]
call fcn.0040d630
push 1
lea ecx, [esp + 0xa8]
mov byte [esp + 0x5210], 3
call fcn.0040d630
mov ecx, dword [esp + 0x20]
mov esi, dword [sym.imp.ole32.dll_CoTaskMemFree]
push ecx
call esi
mov edx, dword [esp + 0x24]
push edx
call esi
mov eax, dword [esp + 0x30]
lea edx, [esp + 0x2c]
push edx
lea edx, [esp + 0x104]
mov ecx, dword [eax]
push edx
mov edx, dword [esp + 0xf0]
push edx
lea edx, [esp + 0xe4]
push edx
push eax
call dword [ecx + 0x48]
test eax, eax
jl 0x4b79e1
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x4b79e1
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x28]
push edx
lea edx, [esp + 0x104]
mov ecx, dword [eax]
push edx
mov edx, dword [esp + 0xf0]
push edx
lea edx, [esp + 0xe4]
push edx
push eax
call dword [ecx + 0xc]
test eax, eax
jl 0x4b79e1
mov ax, word [esp + 0xe8]
mov ecx, dword [esp + 0xd8]
mov edx, dword [esp + 0xdc]
mov word [esp + 0x128], ax
mov eax, dword [esp + 0xe0]
mov dword [esp + 0x12c], ecx
mov ecx, dword [esp + 0xe4]
mov dword [esp + 0x130], edx
mov edx, dword [esp + 0x100]
mov dword [esp + 0x134], eax
mov eax, dword [esp + 0x104]
mov dword [esp + 0x138], ecx
mov ecx, dword [esp + 0x108]
mov dword [esp + 0x13c], edx
mov edx, dword [esp + 0x10c]
mov dword [esp + 0x140], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x144], ecx
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x148], edx
mov dword [esp + 0x14c], eax
lea edx, [esp + 0x124]
mov eax, dword [ecx + 8]
push edx
push eax
call fcn.004bbcf0
lea eax, [esp + 0x28]
lea ecx, [esp + 0x84]
push eax
push ecx
lea ecx, [esp + 0xcc]
call fcn.004bce40
mov eax, dword [esp + 0x34]
lea ecx, [esp + 0xd8]
push 0
push ecx
mov edx, dword [eax]
push 1
push eax
call dword [edx + 0x10]
cmp eax, 1
jne 0x4b75b9
xor esi, esi
mov edi, dword [ebx + 4]
lea edx, [esp + 0x1c]
lea eax, [esp + 0x2c]
push edx
push eax
mov ecx, ebx
mov dword [esp + 0x24], 0x804
call fcn.004bbbf0
cmp dword [esp + 0x2c], edi
je 0x4b7bf1
lea ecx, [esp + 0x13]
mov dword [esp + 0x1c], 0x804
push ecx
lea ecx, [esp + 0x98]
call fcn.00454330
lea edx, [esp + 0x1c]
push eax
push edx
lea ecx, [esp + 0x19c]
mov byte [esp + 0x5214], 0xd
call fcn.004bbc60
mov ecx, dword [esp + 0x48]
push eax
lea eax, [esp + 0x88]
mov byte [esp + 0x5210], 0xe
push eax
call fcn.004bba60
mov ebx, dword [eax]
lea ecx, [esp + 0x198]
mov byte [esp + 0x520c], 0xd
call fcn.004bb780
lea ecx, [esp + 0x94]
mov byte [esp + 0x520c], 3
call fcn.004bb780
mov edi, dword [ebx + 0x14]
mov eax, dword [ebx + 0x18]
cmp edi, eax
je 0x4b7b97
lea esi, [edi + 0x18]
mov cl, byte [esp + 0x13]
push 0
mov byte [esp + 0x128], cl
lea ecx, [esp + 0x128]
call fcn.0040d460
lea edx, [esp + 0x1b]
lea ecx, [esp + 0x134]
push edx
mov byte [esp + 0x5210], 0xf
call fcn.00454330
lea eax, [esi - 0x10]
mov byte [esp + 0x520c], 0x10
mov ecx, dword [eax]
mov dword [esp + 0x144], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x148], edx
mov ecx, dword [eax + 8]
mov dword [esp + 0x14c], ecx
mov edx, dword [eax + 0xc]
mov eax, esi
mov dword [esp + 0x150], edx
mov ecx, dword [eax]
mov dword [esp + 0x154], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x158], edx
mov ecx, dword [eax + 8]
mov dword [esp + 0x15c], ecx
lea ecx, [esp + 0x124]
mov edx, dword [eax + 0xc]
mov eax, dword [esi + 0x10]
mov dword [esp + 0x164], eax
mov eax, dword [ebp + 8]
push ecx
push eax
mov ecx, ebp
mov dword [esp + 0x168], edx
call fcn.004bcaf0
push 1
lea ecx, [esp + 0x138]
mov byte [esp + 0x5210], 0x11
call fcn.0040d460
push 1
lea ecx, [esp + 0x128]
mov byte [esp + 0x5210], 3
call fcn.0040d460
mov eax, dword [ebx + 0x18]
add edi, 0x2c
add esi, 0x2c
cmp edi, eax
jne 0x4b7ab0
mov eax, dword [esp + 0x34]
mov byte [esp + 0x520c], 2
test eax, eax
je 0x4b7bad
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov eax, dword [esp + 0x14]
mov byte [esp + 0x520c], 1
test eax, eax
je 0x4b7c1d
jmp 0x4b7c17
mov byte [esp + 0x520c], 1
jmp 0x4b7c1d
mov eax, dword [esp + 0x34]
mov byte [esp + 0x520c], 2
cmp eax, esi
je 0x4b7bdf
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov eax, dword [esp + 0x14]
mov byte [esp + 0x520c], 1
cmp eax, esi
je 0x4b7c1d
jmp 0x4b7c17
mov eax, dword [esp + 0x34]
mov byte [esp + 0x520c], 2
cmp eax, esi
je 0x4b7c07
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov eax, dword [esp + 0x14]
mov byte [esp + 0x520c], 1
cmp eax, esi
je 0x4b7c1d
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea edx, [esp + 0x2204]
push edx
push 0x400
call dword [sym.imp.USER32.dll_GetKeyboardLayoutList]
mov cl, byte [esp + 0x5214]
test cl, cl
je 0x4b7c47
mov dword [esp + eax*4 + 0x2204], 0x8040804
inc eax
test eax, eax
jle 0x4b7e93
lea esi, [esp + 0x2204]
mov dword [esp + 0x28], eax
mov bl, 0x12
mov edi, dword [esp + 0xc8]
lea eax, [esp + 0x1c]
push esi
push eax
lea ecx, [esp + 0xcc]
call fcn.004dbad0
cmp dword [esp + 0x1c], edi
jne 0x4b7e81
mov cx, word [esi]
mov eax, dword [0x53b90c]
mov edx, dword [0x53b914]
mov edi, dword [0x53b918]
mov word [esp + 0x16c], cx
mov ecx, dword [0x53b910]
mov dword [esp + 0x170], eax
mov dword [esp + 0x180], eax
mov dword [esp + 0x178], edx
mov dword [esp + 0x188], edx
mov edx, dword [esi]
lea eax, [esp + 0x13]
mov dword [esp + 0x174], ecx
mov dword [esp + 0x184], ecx
push eax
lea ecx, [esp + 0x98]
mov dword [esp + 0x180], edi
mov dword [esp + 0x190], edi
mov dword [esp + 0x194], edx
call fcn.00454330
lea ecx, [esp + 0x16c]
push eax
push ecx
lea ecx, [esp + 0x19c]
mov byte [esp + 0x5214], bl
call fcn.004bbc60
mov ecx, dword [esp + 0x48]
lea edx, [esp + 0x84]
push eax
push edx
mov byte [esp + 0x5214], 0x13
call fcn.004bba60
mov edi, dword [eax]
lea ecx, [esp + 0x198]
mov byte [esp + 0x520c], bl
call fcn.004bb780
lea ecx, [esp + 0x94]
mov byte [esp + 0x520c], 1
call fcn.004bb780
mov eax, dword [edi + 0x18]
lea ecx, [edi + 0x10]
lea edx, [esp + 0x168]
push edx
push eax
call fcn.004bbcf0
lea eax, [esp + 0x38]
push esi
push eax
lea ecx, [esp + 0xcc]
call fcn.004bce40
cmp word [esi], 0x804
jne 0x4b7e81
mov ecx, dword [esi]
push ecx
call sub.IMM32.dll_ImmIsIME
test eax, eax
je 0x4b7e81
mov eax, dword [esi]
lea edx, [esp + 0x204]
push 0x1000
push edx
push eax
call sub.IMM32.dll_ImmGetIMEFileNameA
test eax, eax
je 0x4b7e81
mov cl, byte [esp + 0x13]
push 0
mov byte [esp + 0xdc], cl
lea ecx, [esp + 0xdc]
call fcn.0040d460
lea edx, [esp + 0x1b]
lea ecx, [esp + 0xe8]
push edx
mov byte [esp + 0x5210], 0x14
call fcn.00454330
mov eax, dword [0x53b90c]
mov ecx, dword [0x53b910]
mov edx, dword [0x53b914]
mov edi, dword [0x53b918]
mov dword [esp + 0xf8], eax
mov dword [esp + 0x108], eax
mov eax, dword [esi]
mov dword [esp + 0xfc], ecx
mov dword [esp + 0x10c], ecx
mov dword [esp + 0x118], eax
mov eax, dword [ebp + 8]
lea ecx, [esp + 0xd8]
push ecx
push eax
mov ecx, ebp
mov byte [esp + 0x5214], 0x15
mov dword [esp + 0x108], edx
mov dword [esp + 0x10c], edi
mov dword [esp + 0x118], edx
mov dword [esp + 0x11c], edi
call fcn.004bcaf0
push 1
lea ecx, [esp + 0xec]
mov byte [esp + 0x5210], 0x16
call fcn.0040d460
push 1
lea ecx, [esp + 0xdc]
mov byte [esp + 0x5210], 1
call fcn.0040d460
mov eax, dword [esp + 0x28]
add esi, 4
dec eax
mov dword [esp + 0x28], eax
jne 0x4b7c5c
mov eax, dword [esp + 0x48]
mov ebx, dword [eax + 0x40]
mov eax, dword [eax + 0x44]
cmp ebx, eax
je 0x4b8331
mov eax, dword [ebx + 0x40]
test eax, eax
je 0x4b7f6a
lea edx, [esp + 0x204]
push 0x1000
push edx
push eax
call sub.IMM32.dll_ImmGetIMEFileNameA
test eax, eax
je 0x4b8321
lea eax, [esp + 0x204]
lea ecx, [esp + 0x1204]
push eax
push 0x568be0
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
lea edx, [esp + 0x204]
lea eax, [esp + 0x1204]
push 0x1000
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
lea edi, [esp + 0x204]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
lea ecx, [esp + 0x208]
push ecx
lea ecx, [ebx + 0x10]
call fcn.0040fa00
mov eax, dword [ebx + 0x40]
lea edx, [esp + 0x204]
push 0x1000
push edx
push eax
call sub.IMM32.dll_ImmGetDescriptionA
test eax, eax
je 0x4b8321
lea edi, [esp + 0x204]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
lea ecx, [esp + 0x208]
push ecx
mov ecx, ebx
call fcn.0040fa00
jmp 0x4b8250
cmp dword [0x572084], 5
jle 0x4b8250
mov dword [esp + 0x14], 0
mov eax, dword [esp + 0x30]
lea esi, [esp + 0x14]
lea ebp, [ebx + 0x30]
push esi
mov edx, dword [eax]
lea ecx, [ebx + 0x20]
push ebp
push 0x804
push ecx
push eax
mov byte [esp + 0x5220], 0x17
call dword [edx + 0x30]
test eax, eax
jl 0x4b80c6
mov esi, dword [esp + 0x14]
push 0xc
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x2c], eax
test eax, eax
mov byte [esp + 0x520c], 0x18
je 0x4b7fd5
push esi
mov ecx, eax
call fcn.0040d540
mov esi, eax
jmp 0x4b7fd7
xor esi, esi
test esi, esi
mov byte [esp + 0x520c], 0x17
mov dword [esp + 0x2c], esi
jne 0x4b7ff1
push 0x8007000e
call fcn.004c7dcc
test esi, esi
mov byte [esp + 0x520c], 0x19
je 0x4b8008
mov ecx, esi
call fcn.0040d5d0
mov edx, eax
jmp 0x4b800a
xor edx, edx
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
mov ecx, ebx
call fcn.0040fa00
test esi, esi
mov byte [esp + 0x520c], 0x17
je 0x4b8032
mov ecx, esi
call fcn.0040d580
mov esi, dword [sym.imp.ole32.dll_StringFromCLSID]
lea ecx, [esp + 0x24]
lea eax, [ebx + 0x20]
xor edi, edi
push ecx
push eax
mov dword [esp + 0x2c], edi
mov dword [esp + 0x28], edi
call esi
lea edx, [esp + 0x20]
push edx
push ebp
call esi
mov al, byte [esp + 0x13]
push edi
lea ecx, [esp + 0x88]
mov byte [esp + 0x88], al
call fcn.0040d630
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
mov ebp, dword [sym.imp.USER32.dll_wsprintfW]
push ecx
push edx
lea eax, [esp + 0x320c]
push 0x568b4c
push eax
mov byte [esp + 0x521c], 0x1a
call ebp
lea ecx, [esp + 0x94]
lea edx, [esp + 0x3214]
push ecx
push edx
call fcn.004a2520
add esp, 0x18
test eax, eax
jne 0x4b80de
push 1
lea ecx, [esp + 0x88]
mov byte [esp + 0x5210], 0x17
call fcn.0040d630
mov eax, dword [esp + 0x14]
mov byte [esp + 0x520c], 1
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
jmp 0x4b8321
mov esi, dword [esp + 0x88]
cmp esi, edi
jne 0x4b80ee
mov esi, 0x535104
push 0xc
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x2c], eax
cmp eax, edi
mov byte [esp + 0x520c], 0x1b
je 0x4b8114
push esi
mov ecx, eax
call fcn.0040d540
mov esi, eax
jmp 0x4b8116
xor esi, esi
cmp esi, edi
mov byte [esp + 0x520c], 0x1a
mov dword [esp + 0x2c], esi
jne 0x4b8130
push 0x8007000e
call fcn.004c7dcc
cmp esi, edi
mov byte [esp + 0x520c], 0x1c
je 0x4b8145
mov ecx, esi
call fcn.0040d5d0
jmp 0x4b8147
xor eax, eax
lea ecx, [esp + 0x204]
push 0x1000
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp esi, edi
mov byte [esp + 0x520c], 0x1a
je 0x4b816e
mov ecx, esi
call fcn.0040d580
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
push edx
push eax
lea ecx, [esp + 0x320c]
push 0x568ab4
push ecx
call ebp
lea edx, [esp + 0x2c]
lea eax, [esp + 0x3214]
push edx
push eax
call fcn.004a2910
add esp, 0x18
test eax, eax
jne 0x4b81ce
push 1
lea ecx, [esp + 0x88]
mov byte [esp + 0x5210], 0x17
call fcn.0040d630
mov ecx, dword [esp + 0x14]
mov byte [esp + 0x520c], 1
push ecx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
jmp 0x4b8321
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x204]
push edx
push eax
lea ecx, [esp + 0x120c]
push 0x568aac
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
lea edi, [esp + 0x1214]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x10
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edx, [esp + 0x1204]
push ecx
push edx
lea ecx, [ebx + 0x10]
call fcn.0040fa00
mov eax, dword [esp + 0x24]
mov esi, dword [sym.imp.ole32.dll_CoTaskMemFree]
push eax
call esi
mov ecx, dword [esp + 0x20]
push ecx
call esi
push 1
lea ecx, [esp + 0x88]
mov byte [esp + 0x5210], 0x17
call fcn.0040d630
mov edx, dword [esp + 0x14]
mov byte [esp + 0x520c], 1
push edx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov ebp, 0x568984
mov edx, dword [ebp]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
mov eax, dword [ebx + 4]
not ecx
dec ecx
test eax, eax
mov esi, ecx
mov eax, 0x535108
je 0x4b8275
mov eax, dword [ebx + 4]
push esi
push edx
push eax
call dword [sym.imp.MSVCRT.dll__strnicmp]
add esp, 0xc
test eax, eax
je 0x4b8295
add ebp, 4
cmp ebp, 0x5689a4
jb 0x4b8255
jmp 0x4b8321
mov eax, dword [ebx + 4]
test eax, eax
jne 0x4b82a1
mov eax, 0x535108
add esi, eax
mov al, byte [esp + 0x13]
push 0
lea ecx, [esp + 0x3c]
mov byte [esp + 0x3c], al
call fcn.0040d460
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
lea ecx, [esp + 0x3c]
push ebp
call fcn.0040fac0
test al, al
je 0x4b82f2
mov edi, dword [esp + 0x3c]
mov ecx, ebp
mov edx, ecx
push ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x3c]
call fcn.0040faa0
mov eax, dword [0x53510c]
lea ecx, [esp + 0x38]
push eax
push 0
push ecx
mov ecx, ebx
mov byte [esp + 0x5218], 0x1d
call fcn.0040d140
push 1
lea ecx, [esp + 0x3c]
mov byte [esp + 0x5210], 1
call fcn.0040d460
mov edx, dword [esp + 0x48]
add ebx, 0x44
cmp ebx, dword [edx + 0x44]
jne 0x4b7ea5
mov al, byte [esp + 0x13]
mov byte [esp + 0x54], al
xor eax, eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
mov cl, byte [esp + 0x13]
push eax
mov byte [esp + 0x3c], cl
lea ecx, [esp + 0x3c]
mov byte [esp + 0x5210], 0x1e
call fcn.0040d630
push 0x568a3c
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 4
mov esi, eax
lea ecx, [esp + 0x38]
push 1
push esi
call fcn.0040ff60
test al, al
je 0x4b839e
mov edx, dword [esp + 0x3c]
push esi
push 0x568a3c
push edx
call fcn.0040db00
add esp, 0xc
lea ecx, [esp + 0x38]
push esi
call fcn.0040ff40
mov eax, dword [esp + 0x3c]
mov byte [esp + 0x520c], 0x1f
test eax, eax
jne 0x4b83b3
mov eax, 0x535104
lea ecx, [esp + 0x54]
push ecx
push eax
call fcn.004a1ee0
add esp, 8
test eax, eax
je 0x4b86f8
mov ebx, dword [esp + 0x58]
test ebx, ebx
je 0x4b86f8
mov eax, dword [esp + 0x5c]
mov edx, eax
sub edx, ebx
sar edx, 4
je 0x4b86f8
cmp ebx, eax
je 0x4b86f8
add ebx, 4
mov dword [esp + 0x28], ebx
cmp dword [ebx + 4], 8
jne 0x4b86e2
mov eax, dword [ebx]
test eax, eax
jne 0x4b840a
mov eax, 0x535104
push 4
push 0x568a30
push eax
call dword [sym.imp.MSVCRT.dll_wcsncmp]
add esp, 0xc
test eax, eax
je 0x4b86e2
mov al, byte [esp + 0x13]
push 0
lea ecx, [esp + 0x68]
mov byte [esp + 0x68], al
call fcn.0040d630
mov cl, byte [esp + 0x13]
push 0
mov byte [esp + 0x78], cl
lea ecx, [esp + 0x78]
mov byte [esp + 0x5210], 0x20
call fcn.0040d630
mov eax, dword [ebx]
mov byte [esp + 0x520c], 0x21
test eax, eax
jne 0x4b8464
mov eax, 0x535104
lea edi, [eax + 8]
push edi
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 4
mov esi, eax
lea ecx, [esp + 0x64]
push 1
push esi
call fcn.0040ff60
test al, al
je 0x4b849c
mov edx, dword [esp + 0x68]
push esi
push edi
push edx
call fcn.0040db00
add esp, 0xc
lea ecx, [esp + 0x64]
push esi
call fcn.0040ff40
mov eax, dword [esp + 0x68]
xor ebp, ebp
cmp eax, ebp
jne 0x4b84ab
mov eax, 0x535104
push eax
call dword [sym.imp.MSVCRT.dll__wcslwr]
lea edi, [ebx - 4]
lea eax, [esp + 0x3c]
push edi
lea ecx, [esp + 0xbc]
push eax
push ecx
call fcn.00413bf0
push 0x568a18
lea edx, [esp + 0xb8]
push eax
push edx
mov byte [esp + 0x5228], 0x22
call fcn.00413ae0
add esp, 0x1c
mov eax, dword [eax + 4]
mov byte [esp + 0x520c], 0x23
cmp eax, ebp
jne 0x4b84fa
mov eax, 0x535104
lea ecx, [esp + 0x74]
push ecx
push eax
call fcn.004a2520
add esp, 8
test eax, eax
je 0x4b851c
cmp dword [esp + 0x7c], 4
sete al
test al, al
je 0x4b851c
mov bl, 1
jmp 0x4b851e
xor bl, bl
mov ecx, dword [esp + 0xa8]
cmp ecx, ebp
je 0x4b8547
mov al, byte [ecx - 1]
test al, al
je 0x4b853b
cmp al, 0xff
je 0x4b853b
dec al
mov byte [ecx - 1], al
jmp 0x4b8547
add ecx, 0xfffffffe
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov ecx, dword [esp + 0xb8]
mov dword [esp + 0xa8], ebp
cmp ecx, ebp
mov dword [esp + 0xac], ebp
mov dword [esp + 0xb0], ebp
mov byte [esp + 0x520c], 0x21
je 0x4b858d
mov al, byte [ecx - 1]
test al, al
je 0x4b8581
cmp al, 0xff
je 0x4b8581
dec al
mov byte [ecx - 1], al
jmp 0x4b858d
add ecx, 0xfffffffe
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
test bl, bl
mov dword [esp + 0xb8], ebp
mov dword [esp + 0xbc], ebp
mov dword [esp + 0xc0], ebp
je 0x4b866f
mov eax, dword [esp + 0x78]
cmp eax, ebp
jne 0x4b85b7
mov eax, 0x535104
push eax
call dword [sym.imp.MSVCRT.dll__wcslwr]
mov dl, byte [esp + 0x17]
add esp, 4
lea ecx, [esp + 0x94]
mov byte [esp + 0x94], dl
push ebp
call fcn.0040d630
lea eax, [esp + 0x74]
lea ecx, [esp + 0x1a8]
push eax
mov byte [esp + 0x5210], 0x24
call fcn.004a6510
lea ecx, [esp + 0x94]
mov byte [esp + 0x520c], 0x25
push ecx
lea ecx, [esp + 0x1bc]
call fcn.004a6510
mov ecx, dword [esp + 0x120]
lea edx, [esp + 0x1a8]
lea eax, [esp + 0x84]
push edx
push eax
mov byte [esp + 0x5214], 0x26
call fcn.004bc960
mov esi, dword [eax]
lea ecx, [esp + 0x1a8]
mov byte [esp + 0x520c], 0x24
call fcn.0042b6b0
push 1
lea ecx, [esp + 0x98]
mov byte [esp + 0x5210], 0x21
call fcn.0040d630
mov edx, dword [0x535110]
lea ecx, [esi + 0x1c]
push edx
push ebp
push edi
call fcn.0040fca0
mov ecx, dword [esp + 0x78]
cmp ecx, ebp
je 0x4b8695
mov al, byte [ecx - 1]
test al, al
je 0x4b8689
cmp al, 0xff
je 0x4b8689
dec al
mov byte [ecx - 1], al
jmp 0x4b8695
add ecx, 0xfffffffe
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov ecx, dword [esp + 0x68]
mov dword [esp + 0x78], ebp
cmp ecx, ebp
mov dword [esp + 0x7c], ebp
mov dword [esp + 0x80], ebp
mov byte [esp + 0x520c], 0x1f
je 0x4b86d2
mov al, byte [ecx - 1]
test al, al
je 0x4b86c6
cmp al, 0xff
je 0x4b86c6
dec al
mov byte [ecx - 1], al
jmp 0x4b86d2
add ecx, 0xfffffffe
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov ebx, dword [esp + 0x28]
mov dword [esp + 0x68], ebp
mov dword [esp + 0x6c], ebp
mov dword [esp + 0x70], ebp
mov ecx, dword [esp + 0x5c]
add ebx, 0x10
mov dword [esp + 0x28], ebx
lea eax, [ebx - 4]
cmp eax, ecx
jne 0x4b83f5
mov ecx, dword [esp + 0x3c]
test ecx, ecx
je 0x4b871e
mov al, byte [ecx - 1]
test al, al
je 0x4b8712
cmp al, 0xff
je 0x4b8712
dec al
mov byte [ecx - 1], al
jmp 0x4b871e
lea eax, [ecx - 2]
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
mov edi, dword [esp + 0x5c]
mov esi, dword [esp + 0x58]
xor ebx, ebx
cmp esi, edi
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
mov byte [esp + 0x520c], 1
je 0x4b8750
push 1
mov ecx, esi
call fcn.0040d630
add esi, 0x10
cmp esi, edi
jne 0x4b8740
mov ecx, dword [esp + 0x58]
push ecx
call sub.MFC42.DLL_operatordelete
mov eax, dword [esp + 0xcc]
add esp, 4
lea edx, [esp + 0x1c]
mov byte [esp + 0x520c], 0
mov ecx, dword [eax]
push eax
push ecx
push edx
lea ecx, [esp + 0xd0]
call fcn.004bd070
mov eax, dword [esp + 0xc8]
push eax
call sub.MFC42.DLL_operatordelete
mov ecx, dword [esp + 0xd0]
mov dword [esp + 0xcc], ebx
push ecx
mov dword [esp + 0xdc], ebx
call sub.MFC42.DLL_operatordelete
mov eax, dword [esp + 0x38]
add esp, 8
mov dword [esp + 0xcc], ebx
cmp eax, ebx
pop edi
pop esi
pop ebp
mov dword [esp + 0x5200], 0xffffffff
pop ebx
je 0x4b87d0
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov ecx, dword [esp + 0x51f4]
mov dword fs:[0], ecx
add esp, 0x5200
ret 4