Function at 0x496460
Capabilities:
Delete registry key
Delete registry value
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x528a40
push eax
mov eax, 0x2230
mov dword fs:[0], esp
call fcn.004f33a0
push ebx
xor eax, eax
push esi
push edi
mov esi, ecx
mov dword [ebp - 0x10], eax
mov ebx, dword [ebp + 8]
mov dword [ebp - 4], eax
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x28], 1
mov dword [ebp - 0x30], eax
call fcn.00495f60
mov edi, dword [esi]
mov al, byte [edi]
test al, al
je 0x496ec5
cmp al, 0x27
jne 0x496534
push edi
call dword [sym.imp.USER32.dll_CharNextA]
mov dword [esi], eax
mov cl, byte [eax]
test cl, cl
je 0x496519
mov ecx, esi
call fcn.00495ef0
test eax, eax
jne 0x496519
mov eax, dword [esi]
cmp byte [eax], 0x27
jne 0x4964e1
push eax
call dword [sym.imp.USER32.dll_CharNextA]
mov dword [esi], eax
mov edi, dword [esi]
push edi
call dword [sym.imp.USER32.dll_CharNextA]
mov ecx, dword [ebp + 8]
lea edx, [ebx + 2]
add ecx, 0x1000
mov dword [esi], eax
cmp edx, ecx
jae 0x496ec5
cmp edi, eax
jae 0x496512
mov eax, edi
mov cl, byte [eax]
inc eax
mov byte [ebx], cl
mov ecx, dword [esi]
inc ebx
cmp eax, ecx
jb 0x496506
mov edx, dword [esi]
cmp byte [edx], 0
jne 0x4964c6
mov eax, dword [esi]
cmp byte [eax], 0
je 0x496ec5
mov byte [ebx], 0
mov ecx, dword [esi]
push ecx
call dword [sym.imp.USER32.dll_CharNextA]
mov dword [esi], eax
jmp 0x496564
push eax
mov ecx, esi
call fcn.00495f10
test eax, eax
jne 0x496561
push edi
call dword [sym.imp.USER32.dll_CharNextA]
cmp edi, eax
mov dword [esi], eax
jae 0x496559
mov dl, byte [edi]
inc edi
mov byte [ebx], dl
mov eax, dword [esi]
inc ebx
cmp edi, eax
jb 0x49654d
mov edi, dword [esi]
mov al, byte [edi]
test al, al
jne 0x496534
mov byte [ebx], 0
mov eax, dword [ebp + 8]
xor edi, edi
cmp byte [eax], 0x7d
je 0x496e8b
mov ecx, dword [str.Delete]
mov edx, dword [ebp + 8]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
push ecx
push edx
call ebx
mov ecx, dword [ebp + 8]
mov edi, eax
mov eax, dword [str.ForceRemove]
neg edi
sbb edi, edi
push eax
inc edi
push ecx
mov dword [ebp - 0x2c], edi
call ebx
test eax, eax
je 0x4965a7
test edi, edi
je 0x4968b0
mov ebx, dword [ebp + 8]
mov ecx, esi
call fcn.00495f60
mov edi, dword [esi]
mov al, byte [edi]
test al, al
je 0x496e86
cmp al, 0x27
jne 0x496640
push edi
call dword [sym.imp.USER32.dll_CharNextA]
mov dword [esi], eax
mov cl, byte [eax]
test cl, cl
je 0x496623
mov ecx, esi
call fcn.00495ef0
test eax, eax
jne 0x496623
mov eax, dword [esi]
cmp byte [eax], 0x27
jne 0x4965eb
push eax
call dword [sym.imp.USER32.dll_CharNextA]
mov dword [esi], eax
mov edi, dword [esi]
push edi
call dword [sym.imp.USER32.dll_CharNextA]
mov ecx, dword [ebp + 8]
lea edx, [ebx + 2]
add ecx, 0x1000
mov dword [esi], eax
cmp edx, ecx
jae 0x496e86
cmp edi, eax
jae 0x49661c
mov eax, edi
mov dl, byte [eax]
inc eax
mov byte [ebx], dl
mov ecx, dword [esi]
inc ebx
cmp eax, ecx
jb 0x496610
mov eax, dword [esi]
cmp byte [eax], 0
jne 0x4965d0
mov ecx, dword [esi]
cmp byte [ecx], 0
je 0x496e86
mov edi, dword [sym.imp.USER32.dll_CharNextA]
mov byte [ebx], 0
mov edx, dword [esi]
push edx
call edi
mov dword [esi], eax
jmp 0x496676
push eax
mov ecx, esi
call fcn.00495f10
test eax, eax
jne 0x49666d
push edi
call dword [sym.imp.USER32.dll_CharNextA]
cmp edi, eax
mov dword [esi], eax
jae 0x496665
mov al, byte [edi]
inc edi
mov byte [ebx], al
mov eax, dword [esi]
inc ebx
cmp edi, eax
jb 0x496659
mov edi, dword [esi]
mov al, byte [edi]
test al, al
jne 0x496640
mov edi, dword [sym.imp.USER32.dll_CharNextA]
mov byte [ebx], 0
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x4968b0
mov dword [ebp - 0x14], 0
mov ebx, dword [ebp + 8]
mov byte [ebp - 4], 1
mov eax, ebx
mov cl, byte [ebx]
test cl, cl
je 0x4966a9
cmp cl, 0x5c
je 0x496eb9
push eax
call edi
mov cl, byte [eax]
test cl, cl
jne 0x496697
mov edi, 0x55e9b0
mov ecx, dword [edi]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x496778
add edi, 4
cmp edi, str.TYPELIB
jl 0x4966ae
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], eax
push 0x2001f
push ebx
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call fcn.00496fb0
test eax, eax
jne 0x496765
lea edx, [ebp - 0x38]
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
push edx
mov edx, dword [ebp - 0x18]
push eax
push eax
push eax
lea eax, [ebp - 0x20]
lea ecx, [ebp - 0x23c]
push eax
push ecx
push 0
push edx
mov dword [ebp - 0x20], 0x100
call edi
test eax, eax
jne 0x496752
lea eax, [ebp - 0x23c]
lea ecx, [ebp - 0x18]
push eax
call fcn.00497000
test eax, eax
jne 0x496765
lea ecx, [ebp - 0x38]
lea edx, [ebp - 0x20]
push ecx
mov ecx, dword [ebp - 0x18]
push eax
push eax
push eax
lea eax, [ebp - 0x23c]
push edx
push eax
push 0
push ecx
mov dword [ebp - 0x20], 0x100
call edi
test eax, eax
je 0x49671a
lea ecx, [ebp - 0x18]
call fcn.00496f20
mov edx, dword [ebp - 0x14]
push ebx
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.00496f20
mov dword [ebp - 0x14], 0
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x4968a2
mov ebx, dword [ebp + 8]
mov ecx, esi
call fcn.00495f60
mov edi, dword [esi]
mov al, byte [edi]
test al, al
je 0x496e63
cmp al, 0x27
jne 0x49681a
push edi
call dword [sym.imp.USER32.dll_CharNextA]
mov dword [esi], eax
mov cl, byte [eax]
test cl, cl
je 0x4967ff
mov ecx, esi
call fcn.00495ef0
test eax, eax
jne 0x4967ff
mov eax, dword [esi]
cmp byte [eax], 0x27
jne 0x4967c7
push eax
call dword [sym.imp.USER32.dll_CharNextA]
mov dword [esi], eax
mov edi, dword [esi]
push edi
call dword [sym.imp.USER32.dll_CharNextA]
mov edx, dword [ebp + 8]
lea ecx, [ebx + 2]
add edx, 0x1000
mov dword [esi], eax
cmp ecx, edx
jae 0x496e63
cmp edi, eax
jae 0x4967f8
mov eax, edi
mov cl, byte [eax]
inc eax
mov byte [ebx], cl
mov ecx, dword [esi]
inc ebx
cmp eax, ecx
jb 0x4967ec
mov edx, dword [esi]
cmp byte [edx], 0
jne 0x4967ac
mov eax, dword [esi]
cmp byte [eax], 0
je 0x496e63
mov byte [ebx], 0
mov ecx, dword [esi]
push ecx
call dword [sym.imp.USER32.dll_CharNextA]
mov dword [esi], eax
jmp 0x49684a
push eax
mov ecx, esi
call fcn.00495f10
test eax, eax
jne 0x496847
push edi
call dword [sym.imp.USER32.dll_CharNextA]
cmp edi, eax
mov dword [esi], eax
jae 0x49683f
mov dl, byte [edi]
inc edi
mov byte [ebx], dl
mov eax, dword [esi]
inc ebx
cmp edi, eax
jb 0x496833
mov edi, dword [esi]
mov al, byte [edi]
test al, al
jne 0x49681a
mov byte [ebx], 0
mov ebx, dword [ebp + 8]
cmp byte [ebx], 0x3d
jne 0x49688f
push ebx
mov ecx, esi
call fcn.00495fb0
test eax, eax
jl 0x496e76
mov ecx, esi
call fcn.00495f60
lea eax, [ebp - 0x123c]
mov ecx, esi
push eax
call fcn.00495fb0
test eax, eax
jl 0x496e76
push ebx
mov ecx, esi
call fcn.00495fb0
test eax, eax
jl 0x496e76
lea ecx, [ebp - 0x14]
xor edi, edi
mov byte [ebp - 4], 0
call fcn.00496f20
jmp 0x496b80
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0
call fcn.00496f20
jmp 0x4968b3
mov ebx, dword [ebp + 8]
mov ecx, dword [str.NoRemove]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x496993
mov ebx, dword [ebp + 8]
mov ecx, esi
mov dword [ebp - 0x28], eax
call fcn.00495f60
mov edi, dword [esi]
mov al, byte [edi]
test al, al
je 0x496e86
cmp al, 0x27
jne 0x496963
push edi
call dword [sym.imp.USER32.dll_CharNextA]
mov dword [esi], eax
mov cl, byte [eax]
test cl, cl
je 0x496948
mov ecx, esi
call fcn.00495ef0
test eax, eax
jne 0x496948
mov eax, dword [esi]
cmp byte [eax], 0x27
jne 0x496910
push eax
call dword [sym.imp.USER32.dll_CharNextA]
mov dword [esi], eax
mov edi, dword [esi]
push edi
call dword [sym.imp.USER32.dll_CharNextA]
mov ecx, dword [ebp + 8]
lea edx, [ebx + 2]
add ecx, 0x1000
mov dword [esi], eax
cmp edx, ecx
jae 0x496e86
cmp edi, eax
jae 0x496941
mov eax, edi
mov dl, byte [eax]
inc eax
mov byte [ebx], dl
mov ecx, dword [esi]
inc ebx
cmp eax, ecx
jb 0x496935
mov eax, dword [esi]
cmp byte [eax], 0
jne 0x4968f5
mov ecx, dword [esi]
cmp byte [ecx], 0
je 0x496e86
mov byte [ebx], 0
mov edx, dword [esi]
push edx
call dword [sym.imp.USER32.dll_CharNextA]
mov dword [esi], eax
jmp 0x496993
push eax
mov ecx, esi
call fcn.00495f10
test eax, eax
jne 0x496990
push edi
call dword [sym.imp.USER32.dll_CharNextA]
cmp edi, eax
mov dword [esi], eax
jae 0x496988
mov al, byte [edi]
inc edi
mov byte [ebx], al
mov eax, dword [esi]
inc ebx
cmp edi, eax
jb 0x49697c
mov edi, dword [esi]
mov al, byte [edi]
test al, al
jne 0x496963
mov byte [ebx], 0
mov ecx, dword [0x536d5c]
mov edi, dword [ebp + 8]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x496c40
mov ecx, esi
lea edi, [ebp - 0x13c]
call fcn.00495f60
mov ebx, dword [esi]
mov al, byte [ebx]
test al, al
je 0x496e86
cmp al, 0x27
jne 0x496a3d
push ebx
call dword [sym.imp.USER32.dll_CharNextA]
mov dword [esi], eax
mov cl, byte [eax]
test cl, cl
je 0x496a24
mov ecx, esi
call fcn.00495ef0
test eax, eax
jne 0x496a24
mov eax, dword [esi]
cmp byte [eax], 0x27
jne 0x4969f3
push eax
call dword [sym.imp.USER32.dll_CharNextA]
mov dword [esi], eax
mov ebx, dword [esi]
push ebx
call dword [sym.imp.USER32.dll_CharNextA]
lea edx, [edi + 2]
lea ecx, [ebp + 0xec4]
cmp edx, ecx
mov dword [esi], eax
jae 0x496e86
cmp ebx, eax
jae 0x496a1f
mov ecx, ebx
mov dl, byte [ecx]
inc ecx
mov byte [edi], dl
inc edi
cmp ecx, eax
jb 0x496a15
cmp byte [eax], 0
jne 0x4969d8
mov eax, dword [esi]
cmp byte [eax], 0
je 0x496e86
push eax
mov byte [edi], 0
call dword [sym.imp.USER32.dll_CharNextA]
mov dword [esi], eax
jmp 0x496a6b
push eax
mov ecx, esi
call fcn.00495f10
test eax, eax
jne 0x496a68
push ebx
call dword [sym.imp.USER32.dll_CharNextA]
cmp ebx, eax
mov dword [esi], eax
jae 0x496a60
mov cl, byte [ebx]
inc ebx
mov byte [edi], cl
inc edi
cmp ebx, eax
jb 0x496a56
mov ebx, eax
mov al, byte [eax]
test al, al
jne 0x496a3d
mov byte [edi], 0
mov ebx, dword [ebp + 8]
mov ecx, esi
call fcn.00495f60
mov edi, dword [esi]
mov al, byte [edi]
test al, al
je 0x496e86
cmp al, 0x27
jne 0x496b02
push edi
call dword [sym.imp.USER32.dll_CharNextA]
mov dword [esi], eax
mov cl, byte [eax]
test cl, cl
je 0x496ae7
mov ecx, esi
call fcn.00495ef0
test eax, eax
jne 0x496ae7
mov eax, dword [esi]
cmp byte [eax], 0x27
jne 0x496aaf
push eax
call dword [sym.imp.USER32.dll_CharNextA]
mov dword [esi], eax
mov edi, dword [esi]
push edi
call dword [sym.imp.USER32.dll_CharNextA]
mov ecx, dword [ebp + 8]
lea edx, [ebx + 2]
add ecx, 0x1000
mov dword [esi], eax
cmp edx, ecx
jae 0x496e86
cmp edi, eax
jae 0x496ae0
mov eax, edi
mov dl, byte [eax]
inc eax
mov byte [ebx], dl
mov ecx, dword [esi]
inc ebx
cmp eax, ecx
jb 0x496ad4
mov eax, dword [esi]
cmp byte [eax], 0
jne 0x496a94
mov ecx, dword [esi]
cmp byte [ecx], 0
je 0x496e86
mov byte [ebx], 0
mov edx, dword [esi]
push edx
call dword [sym.imp.USER32.dll_CharNextA]
mov dword [esi], eax
jmp 0x496b32
push eax
mov ecx, esi
call fcn.00495f10
test eax, eax
jne 0x496b2f
push edi
call dword [sym.imp.USER32.dll_CharNextA]
cmp edi, eax
mov dword [esi], eax
jae 0x496b27
mov al, byte [edi]
inc edi
mov byte [ebx], al
mov eax, dword [esi]
inc ebx
cmp edi, eax
jb 0x496b1b
mov edi, dword [esi]
mov al, byte [edi]
test al, al
jne 0x496b02
mov byte [ebx], 0
mov edi, dword [ebp + 8]
cmp byte [edi], 0x3d
jne 0x496edb
mov eax, dword [ebp + 0x10]
xor ebx, ebx
cmp eax, ebx
je 0x496bcd
mov ecx, dword [ebp + 0xc]
lea edx, [ebp - 0x13c]
push edi
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], ecx
push edx
push eax
mov ecx, esi
mov byte [ebp - 4], 3
call fcn.00497150
lea ecx, [ebp - 0x14]
mov edi, eax
mov dword [ebp - 0x14], ebx
mov byte [ebp - 4], bl
call fcn.00496f20
cmp edi, ebx
jl 0x496e8b
mov ebx, dword [ebp + 8]
cmp byte [ebx], 0x7b
jne 0x496bc2
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, 1
jne 0x496bc2
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x10]
push 0
push eax
push ecx
push ebx
mov ecx, esi
call fcn.00496460
mov edi, eax
test edi, edi
jl 0x496e8b
mov ecx, esi
push ebx
call fcn.00495fb0
mov edi, eax
test edi, edi
jl 0x496e8b
mov edx, dword [ebp + 8]
cmp byte [edx], 0x7d
jmp 0x49656c
cmp dword [ebp + 0x14], ebx
jne 0x496bf1
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x13c]
push ecx
push eax
mov dword [ebp - 0x14], eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], ebx
call fcn.00496f20
cmp byte [edi], 0x3d
jne 0x496c33
push edi
mov ecx, esi
call fcn.00495fb0
cmp eax, ebx
jl 0x496eb5
mov ecx, esi
call fcn.00495f60
lea edx, [ebp - 0x223c]
mov ecx, esi
push edx
call fcn.00495fb0
cmp eax, ebx
jl 0x496eb5
push edi
mov ecx, esi
call fcn.00495fb0
cmp eax, ebx
jl 0x496eb5
mov edx, dword [ebp + 8]
xor edi, edi
cmp byte [edx], 0x7d
jmp 0x49656c
mov cl, byte [edi]
mov eax, edi
test cl, cl
je 0x496c60
mov ebx, dword [sym.imp.USER32.dll_CharNextA]
cmp cl, 0x5c
je 0x496ec5
push eax
call ebx
mov cl, byte [eax]
test cl, cl
jne 0x496c4e
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x496ce6
mov ebx, dword [ebp + 0xc]
push 0xf003f
push edi
push ebx
lea ecx, [ebp - 0x10]
call fcn.00496fb0
test eax, eax
je 0x496caf
push 0x20019
push edi
push ebx
lea ecx, [ebp - 0x10]
call fcn.00496fb0
test eax, eax
je 0x496caf
push 0
push 0
push 0xf003f
push 0
push 0
push edi
push ebx
lea ecx, [ebp - 0x10]
call fcn.00496f40
test eax, eax
jne 0x496ec5
mov ebx, dword [ebp + 8]
mov ecx, esi
push ebx
call fcn.00495fb0
mov edi, eax
test edi, edi
jl 0x496e8b
cmp byte [ebx], 0x3d
jne 0x496b80
mov eax, ebx
lea ecx, [ebp - 0x10]
push eax
push 0
push ecx
mov ecx, esi
call fcn.00497150
mov edi, eax
test edi, edi
jmp 0x496b7a
mov eax, dword [ebp + 0x14]
test eax, eax
jne 0x496d0a
mov edx, dword [ebp + 0xc]
push 0x20019
push edi
push edx
lea ecx, [ebp - 0x10]
call fcn.00496fb0
test eax, eax
je 0x496d0a
mov dword [ebp + 0x14], 1
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
jne 0x496d20
mov eax, 0x104
call fcn.004f33a0
mov ebx, esp
mov dword [ebp - 0x1c], ebx
push 0x104
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov eax, dword [ebp + 0x14]
test eax, eax
jne 0x496d56
mov eax, dword [ebp - 0x10]
mov ecx, esi
push eax
call fcn.00497540
test eax, eax
jne 0x496d56
mov ecx, dword [ebp - 0x10]
push ecx
mov ecx, esi
call fcn.00497590
test eax, eax
je 0x496e11
mov ebx, dword [ebp + 8]
mov ecx, esi
push ebx
call fcn.00495fb0
mov edi, eax
test edi, edi
jl 0x496e8b
push ebx
mov ecx, esi
call fcn.00497640
mov edi, eax
test edi, edi
jl 0x496e8b
cmp byte [ebx], 0x7b
jne 0x496db0
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp - 0x10]
push edx
push 0
push eax
push ebx
mov ecx, esi
call fcn.00496460
mov edi, eax
test edi, edi
jl 0x496e8b
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x496dbe
mov ecx, dword [ebp - 0x30]
mov dword [ebp + 0x14], ecx
jmp 0x496e48
mov eax, dword [ebp + 0x14]
test eax, eax
jne 0x496bc2
mov ebx, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
mov ecx, esi
push edx
call fcn.00497540
test eax, eax
je 0x496e03
mov edi, 0x55e9b0
mov eax, dword [edi]
mov ecx, dword [ebp - 0x1c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x496bb0
add edi, 4
cmp edi, str.TYPELIB
jl 0x496dd2
mov edx, dword [ebp - 0x1c]
lea ecx, [ebp - 0x10]
push edx
call fcn.00497000
jmp 0x496bb0
mov eax, dword [ebp + 0x14]
test eax, eax
jne 0x496bc2
mov ebx, dword [ebp - 0x1c]
lea ecx, [ebp - 0x10]
call fcn.00496f20
test eax, eax
jne 0x496edb
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x496e45
mov eax, dword [ebp + 0xc]
push ebx
push eax
mov dword [ebp - 0x24], eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x24], 0
call fcn.00496f20
mov ebx, dword [ebp + 8]
push ebx
mov ecx, esi
call fcn.00495fb0
mov edi, eax
test edi, edi
jl 0x496e8b
push ebx
mov ecx, esi
call fcn.00497640
jmp 0x496bb8
lea ecx, [ebp - 0x14]
mov edi, 0x80020009
mov byte [ebp - 4], 0
call fcn.00496f20
jmp 0x496e8b
lea ecx, [ebp - 0x14]
mov edi, eax
mov byte [ebp - 4], 0
call fcn.00496f20
jmp 0x496e8b
mov edi, 0x80020009
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], 0xffffffff
call fcn.00496f20
mov eax, edi
lea esp, [ebp - 0x2248]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov edi, eax
jmp 0x496e8b
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0
call fcn.00496f20
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], 0xffffffff
call fcn.00496f20
mov eax, 0x80020009
jmp 0x496e9c
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], 0xffffffff
call fcn.00496f20
mov eax, 0x80020009
jmp 0x496e9c