Function at 0x414e80
Capabilities:
Get common file path
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0x128
mov word [0x41c94a], 0x40
mov dword [esp + 0x14], 0x18
lea eax, [esp + 0x24]
push ebx
mov dword [esp + 0x14], 0
push esi
push edi
push ebp
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
jne 0x414ec7
mov eax, 2
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x128
ret
mov edi, 0x4192ec
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov ecx, 0xffffffff
lea edi, [esp + 0x34]
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push 0x3e80
and ecx, 3
push 0x42
rep movsb byte es:[edi], byte [esi]
mov esi, dword [sym.imp.KERNEL32.dll_GlobalAlloc]
call esi
push eax
mov edi, dword [sym.imp.KERNEL32.dll_GlobalLock]
call edi
mov dword [esp + 0x10], eax
test eax, eax
jne 0x414f29
mov eax, 2
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x128
ret
push 0x3e80
push 0x42
call esi
push eax
call edi
mov ebx, eax
test ebx, ebx
jne 0x414f6f
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalHandle]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalHandle]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, 2
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x128
ret
lea eax, [esp + 0x34]
push 0
push eax
call dword [sym.imp.KERNEL32.dll__lopen]
cmp eax, 0xffffffff
mov ebp, eax
jne 0x41525e
mov dword [esp + 0x14], 0x3e80
lea eax, [esp + 0x14]
push eax
push ebx
push 0x419188
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
test eax, eax
je 0x4151ad
mov eax, dword [esp + 0x10]
push 0x104
push eax
mov edi, 0x4192e4
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov ecx, 0xffffffff
lea edi, [esp + 0x34]
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push 0
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll__lopen]
cmp eax, 0xffffffff
mov esi, eax
je 0x415063
lea eax, [esp + 0x20]
push 4
push eax
push esi
call dword [sym.imp.KERNEL32.dll__lread]
cmp eax, 4
jne 0x41504e
cmp dword [esp + 0x20], 0
jne 0x41504e
lea eax, [esp + 0x20]
push 4
push eax
push esi
call dword [sym.imp.KERNEL32.dll__lread]
cmp dword [esp + 0x20], 0x14
jne 0x415042
push 4
push 0x41cc28
push esi
call dword [sym.imp.KERNEL32.dll__lread]
jmp 0x415057
mov dword [0x41cc28], 0
jmp 0x415057
mov eax, dword [esp + 0x20]
mov dword [0x41cc28], eax
push esi
call dword [sym.imp.KERNEL32.dll__lclose]
jmp 0x4151be
xor eax, eax
mov ax, word [0x41cb8c]
push eax
call fcn.00418e60
add esp, 4
call fcn.00418e70
mov dword [esp + 0x14], eax
xor eax, eax
mov ax, word [0x41cb8a]
push eax
call fcn.00418e60
add esp, 4
call fcn.00418e70
mov dword [esp + 0x18], eax
shl eax, 0x10
or eax, dword [esp + 0x14]
cdq
xor eax, edx
sub eax, edx
mov dword [0x41cc28], eax
xor eax, eax
mov ax, word [0x41cb86]
push eax
call fcn.00418e60
add esp, 4
call fcn.00418e70
mov dword [esp + 0x14], eax
xor eax, eax
mov ax, word [0x41cb88]
push eax
call fcn.00418e60
add esp, 4
call fcn.00418e70
mov dword [esp + 0x18], eax
lea ecx, [esp + 0x30]
shl eax, 0x10
push ecx
or eax, dword [esp + 0x18]
push 0x419188
push 0x80000000
mov ebp, dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
cdq
xor eax, edx
sub eax, edx
add dword [0x41cc28], eax
call ebp
test eax, eax
je 0x41519e
lea eax, [esp + 0x30]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
push eax
push 0x419188
push 0x80000000
call ebp
test eax, eax
je 0x415178
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalHandle]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalHandle]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalHandle]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalHandle]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, 2
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x128
ret
push 0xa
mov eax, dword [0x41cc28]
push ebx
push eax
call fcn.00418c80
add esp, 0xc
push 0x14
push ebx
push 1
push 0x419188
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegSetValueA]
mov eax, dword [esp + 0x30]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call ebp
jmp 0x4151be
mov edx, 0x4192dc
mov ecx, ebx
call fcn.00417a60
mov dword [0x41cc28], eax
lea eax, [esp + 0x14]
mov ecx, dword [esp + 0x10]
push eax
mov edx, dword [0x41cb78]
mov dword [esp + 0x18], 0x3e80
push ecx
push edx
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
test eax, eax
je 0x41523d
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalHandle]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalHandle]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalHandle]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalHandle]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, 1
pop ebp
or byte [0x41c94a], 8
pop edi
pop esi
pop ebx
add esp, 0x128
ret
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalHandle]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalHandle]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x4156ec
lea eax, [esp + 0x20]
push 4
push eax
push ebp
call dword [sym.imp.KERNEL32.dll__lread]
cmp eax, 4
mov esi, eax
jne 0x415338
cmp dword [esp + 0x20], 0
jne 0x415338
lea eax, [esp + 0x20]
push 4
push eax
push ebp
call dword [sym.imp.KERNEL32.dll__lread]
cmp dword [esp + 0x20], 0x14
mov esi, eax
jne 0x415330
push 4
push 0x41cc28
push ebp
call dword [sym.imp.KERNEL32.dll__lread]
mov esi, eax
push 4
lea eax, [esp + 0x28]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll__lread]
add esi, eax
push 8
mov eax, dword [esp + 0x14]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll__lread]
add eax, esi
cmp eax, 0x10
je 0x415329
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalHandle]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalHandle]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalHandle]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalHandle]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebp
call dword [sym.imp.KERNEL32.dll__lclose]
mov eax, 2
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x128
ret
mov esi, 4
jmp 0x415368
mov dword [esp + 0x20], 0
mov eax, dword [esp + 0x20]
push 2
push 0
mov dword [0x41cc28], eax
mov dword [esp + 0x28], 0xa
push ebp
call dword [sym.imp.KERNEL32.dll__llseek]
mov dword [esp + 0x24], eax
cmp eax, 4
jb 0x415368
push 0
push 4
push ebp
call dword [sym.imp.KERNEL32.dll__llseek]
cmp esi, 4
je 0x4153fb
mov dword [esp + 0x14], 0x3e80
lea eax, [esp + 0x14]
push eax
push ebx
push 0x419188
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
test eax, eax
je 0x4153ea
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalHandle]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalHandle]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalHandle]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalHandle]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebp
call dword [sym.imp.KERNEL32.dll__lclose]
mov eax, 2
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x128
ret
mov edx, 0x4192d4
mov ecx, ebx
call fcn.00417a60
mov dword [0x41cc28], eax
lea eax, [esp + 0x14]
mov ecx, dword [esp + 0x10]
push eax
mov edx, dword [0x41cb78]
mov dword [esp + 0x18], 0x3e80
push ecx
push edx
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
push 0x10
test eax, eax
push ebx
push ebp
je 0x41553a
call dword [sym.imp.KERNEL32.dll__lread]
mov ecx, dword [esp + 0x20]
sub ecx, 0x14
cmp ecx, 1
sbb ecx, ecx
and ecx, 0x14
add ecx, 0x14
cmp eax, 0x10
mov dword [esp + 0x28], ecx
jne 0x415495
mov ecx, dword [esp + 0x28]
cmp ecx, dword [esp + 0x24]
jg 0x415495
mov eax, dword [ebx + 0xc]
mov ecx, 0xc
mov esi, dword [0x41cb78]
mov edi, ebx
mov dword [esp + 0x18], eax
repe cmpsb byte [esi], byte es:[edi]
je 0x4154f3
push 1
push eax
push ebp
call dword [sym.imp.KERNEL32.dll__llseek]
push 0x10
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll__lread]
mov ecx, dword [esp + 0x18]
add ecx, eax
add dword [esp + 0x28], ecx
cmp eax, 0x10
je 0x41544c
or byte [0x41c94a], 8
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalHandle]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalHandle]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalHandle]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalHandle]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebp
call dword [sym.imp.KERNEL32.dll__lclose]
mov eax, 1
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x128
ret
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
push eax
push ecx
push ebp
call dword [sym.imp.KERNEL32.dll__lread]
inc eax
push ebx
mov dword [esp + 0x18], eax
call dword [sym.imp.KERNEL32.dll_GlobalHandle]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalHandle]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll__lclose]
call ebp
or byte [0x41c94a], 2
jmp 0x4156f3
call dword [sym.imp.KERNEL32.dll__lread]
mov ecx, dword [esp + 0x20]
sub ecx, 0x14
cmp ecx, 1
sbb ecx, ecx
and ecx, 0x14
add ecx, 0x14
cmp eax, 0x10
mov dword [esp + 0x28], ecx
jne 0x4156ba
mov ecx, dword [esp + 0x28]
cmp ecx, dword [esp + 0x24]
jg 0x4156ba
mov eax, dword [ebx + 0xc]
mov ecx, 0xc
mov esi, dword [0x41cb78]
mov edi, ebx
mov dword [esp + 0x18], eax
repe cmpsb byte [esi], byte es:[edi]
je 0x4155ad
push 1
push eax
push ebp
call dword [sym.imp.KERNEL32.dll__llseek]
push 0x10
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll__lread]
mov ecx, dword [esp + 0x18]
add ecx, eax
add dword [esp + 0x28], ecx
cmp eax, 0x10
je 0x41555f
jmp 0x4156ba
or byte [0x41c94a], 1
mov eax, dword [esp + 0x18]
sub eax, dword [esp + 0x14]
cmp eax, 0xffffffff
je 0x415618
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalHandle]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalHandle]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalHandle]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalHandle]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebp
call dword [sym.imp.KERNEL32.dll__lclose]
mov eax, 2
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x128
ret
mov esi, dword [esp + 0x18]
push esi
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll__lread]
cmp eax, esi
jae 0x415680
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalHandle]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalHandle]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalHandle]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalHandle]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebp
call dword [sym.imp.KERNEL32.dll__lclose]
mov eax, 2
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x128
ret
mov eax, dword [esp + 0x18]
mov esi, dword [esp + 0x10]
mov ecx, eax
mov edi, ebx
shr ecx, 2
repe cmpsd dword [esi], dword es:[edi]
jne 0x4156ba
mov ecx, eax
and ecx, 3
repe cmpsb byte [esi], byte es:[edi]
jne 0x4156ba
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalHandle]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalHandle]
push eax
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebp
call dword [sym.imp.KERNEL32.dll__lclose]
test ebx, ebx
je 0x4156f3
test byte [0x41c94a], 1
jne 0x4156f3
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalHandle]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalHandle]
push eax
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
or byte [0x41c94a], 4
lea ecx, [esp + 0x14]
lea edx, [esp + 0x1c]
dec dword [esp + 0x14]
push ecx
mov eax, dword [esp + 0x18]
push edx
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x20], eax
call fcn.00417770
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalHandle]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov ecx, dword [esp + 0x10]
mov edi, 0x41c950
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalHandle]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov esi, dword [esp + 0x1c]
mov ecx, 0x20
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x1c]
mov esi, 0x41c9e0
add eax, 0x80
mov dword [esp + 0x2c], eax
mov eax, dword [esi]
test eax, eax
je 0x415780
push eax
call dword [sym.imp.KERNEL32.dll_GlobalHandle]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalHandle]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [esp + 0x2c]
cmp byte [eax], 0
je 0x41579d
mov ecx, eax
call fcn.00417ad0
lea ecx, [esp + 0x2c]
mov dword [esi], eax
call fcn.00417440
jmp 0x4157a7
mov dword [esi], 0
inc dword [esp + 0x2c]
add esi, 4
cmp esi, 0x41ca30
jb 0x41575c
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalHandle]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalHandle]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
test byte [0x41c94a], 1
je 0x41596a
test ebx, ebx
je 0x41596a
lea eax, [esp + 0x18]
lea ecx, [esp + 0x1c]
mov edx, dword [esp + 0x18]
push eax
push ecx
mov ecx, ebx
call fcn.00417770
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalHandle]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalHandle]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov ecx, dword [esp + 0x1c]
mov ax, word [ecx + 0x5d]
mov cx, word [0x41c9ad]
cmp ax, cx
jb 0x415833
mov ax, cx
mov cx, word [0x41c9af]
mov word [0x41c9ad], ax
mov eax, dword [esp + 0x1c]
mov ax, word [eax + 0x5f]
cmp ax, cx
jb 0x415850
mov ax, cx
mov word [0x41c9af], ax
xor edx, edx
mov dx, word [0x41c9b3]
lea eax, [edx*2 - 0xbc34]
lea ecx, [eax + eax*2]
lea edx, [ecx + ecx*4]
xor ecx, ecx
mov cx, word [0x41c9b1]
lea ebx, [ecx + ecx*8]
lea ecx, [ecx + ebx*8]
lea eax, [ecx + ecx*4]
mov ecx, dword [esp + 0x1c]
add edx, eax
add ecx, 0x61
xor eax, eax
xor esi, esi
mov ax, word [0x41c9b7]
add edx, eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x14], edx
xor edx, edx
mov si, word [eax + 0x63]
mov dx, word [ecx]
add esi, esi
sub edx, 0x7bc
lea eax, [esi + esi*2]
lea esi, [eax + eax*4]
lea ebx, [edx + edx*8]
lea edx, [edx + ebx*8]
mov ebx, dword [esp + 0x1c]
lea eax, [edx + edx*4]
xor edx, edx
mov dx, word [ebx + 0x67]
add esi, eax
add esi, edx
mov dword [esp + 0x18], esi
cmp esi, dword [esp + 0x14]
jge 0x4158ee
mov edx, 0x41c9b1
mov eax, dword [ecx]
mov dword [edx], eax
mov ebx, dword [ecx + 4]
mov dword [edx + 4], ebx
mov ebp, dword [ecx + 8]
mov dword [edx + 8], ebp
mov eax, dword [ecx + 0xc]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x1c]
mov ecx, dword [0x41c9c4]
mov eax, dword [eax + 0x74]
cmp eax, ecx
jb 0x415901
mov eax, ecx
mov ecx, dword [0x41c9c8]
mov dword [0x41c9c4], eax
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + 0x78]
cmp eax, ecx
jb 0x415919
mov eax, ecx
mov dword [0x41c9c8], eax
mov eax, dword [esp + 0x1c]
mov ax, word [eax + 0x71]
movsx ecx, ax
shl ecx, 2
lea edx, [ecx + ecx*2]
mov ecx, dword [0x41cc4c]
lea ebx, [edx + edx*4]
cmp word [ebx + ecx + 0x28], 0
jne 0x415946
mov word [0x41c9c1], ax
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalHandle]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalHandle]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x128
ret