Function at 0x475020
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x55a879
mov eax, dword fs:[0]
push eax
sub esp, 0x94
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5b3890]
xor eax, esp
push eax
lea eax, [esp + 0xa8]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x14], esi
mov ebp, dword [esp + 0xb8]
test ebp, ebp
jne 0x475066
lea eax, [ebp + 1]
jmp 0x475717
push 0x30
lea eax, [esp + 0x3c]
push 0
push eax
call fcn.00519500
add esp, 0xc
lea ecx, [esp + 0x38]
push ecx
push 1
xor edi, edi
push edi
or ebx, 0xffffffff
push ebp
mov dword [esp + 0x48], 0x30
mov dword [esp + 0x4c], 6
mov dword [esp + 0x2c], ebx
call dword [sym.imp.USER32.dll_GetMenuItemInfoW]
test eax, eax
je 0x475715
lea ecx, [edi - 2]
jmp 0x4750b8
mov ecx, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
mov eax, dword [esp + 0x4c]
inc edi
inc ecx
mov dword [esp + 0xbc], edi
mov dword [esp + 0x18], ecx
test eax, eax
je 0x4750ec
mov edx, dword [esp + 0xc4]
mov ecx, dword [esp + 0xc0]
push edx
push ecx
push 0
push eax
mov ecx, esi
call fcn.00475020
jmp case.0x475189.40012
mov eax, dword [esp + 0x48]
cmp eax, 0x9c4a
ja 0x475173
je 0x475130
test eax, eax
jne case.0x475189.40012
cmp ebx, 0xffffffff
je 0x475126
cmp ebx, ecx
jne 0x475126
dec edi
push 0x400
dec ecx
push edi
push ebp
mov dword [esp + 0xc8], edi
mov dword [esp + 0x24], ecx
call fcn.004a8ac0
add esp, 0xc
dec edi
mov dword [esp + 0x1c], edi
jmp case.0x475189.40012
mov ecx, dword [esi + 0xbc]
push 1
call fcn.0046e170
mov ecx, dword [esi + 0xbc]
push 0
mov edi, eax
call fcn.0046e170
test edi, edi
je 0x475158
test eax, eax
jne 0x475158
mov al, 1
jmp 0x47515a
xor al, al
xor edx, edx
test al, al
mov eax, dword [esp + 0x48]
sete dl
push edx
push eax
push ebp
call dword [sym.imp.USER32.dll_EnableMenuItem]
jmp case.0x475189.40012
lea ecx, [eax - 0x9c4b]
cmp ecx, 0x3d
ja case.0x475189.40012
movzx ecx, byte [ecx + 0x475760]
jmp dword [ecx*4 + 0x475734]
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0x80]
call fcn.0049eff0
mov dword [esp + 0x78], vtable.cWCStr.0
mov ecx, dword [esi + 0xbc]
lea edx, [esp + 0x78]
xor edi, edi
push edx
mov dword [esp + 0xb4], edi
xor ebp, ebp
xor bl, bl
call fcn.0046f950
push 1
push eax
lea ecx, [esp + 0x34]
call fcn.0046f2c0
mov esi, dword [esp + 0x2c]
mov byte [esp + 0xb0], 1
test esi, esi
je 0x475223
push ebp
push 0x5b1bc8
push 0x5b06a4
push ebp
push 5
mov ecx, esi
mov bl, 1
call fcn.0043d7c0
push eax
call fcn.0051b3ef
add esp, 0x14
push edi
push 0x5b1c2c
push 0x5b06a4
push edi
push 6
mov ecx, esi
mov ebp, eax
call fcn.0043d7c0
push eax
call fcn.0051b3ef
add esp, 0x14
mov edi, eax
mov dword [esp + 0x20], 0x9c50
test edi, edi
jne 0x47524d
test ebp, ebp
je 0x4752ff
mov dword [esp + 0x20], 0xeb
call fcn.00461020
cmp eax, 3
je 0x475328
xor bl, bl
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0x70]
call fcn.0049eff0
mov dword [esp + 0x68], vtable.cWCStr.0
mov ecx, dword [esp + 0x20]
mov edx, dword [0x5b9f28]
push 1
push 1
push ecx
push edx
lea ecx, [esp + 0x78]
mov byte [esp + 0xc0], 2
call fcn.004b5af0
mov edi, dword [esp + 0xb8]
push eax
mov eax, dword [esp + 0x4c]
push 0
push eax
push edi
call fcn.004a8de0
mov ebp, vtable.cWCS.0
add esp, 0x10
lea ecx, [esp + 0x68]
mov byte [esp + 0xb0], 1
mov dword [esp + 0x68], ebp
call fcn.0049ee80
mov edx, dword [esp + 0x48]
xor ecx, ecx
test bl, bl
sete cl
push ecx
push edx
push edi
call dword [sym.imp.USER32.dll_EnableMenuItem]
push esi
mov byte [esp + 0xb4], 0
call fcn.0043e680
add esp, 4
lea ecx, [esp + 0x78]
mov dword [esp + 0xb0], 0xffffffff
mov dword [esp + 0x78], ebp
call fcn.0049ee80
mov esi, dword [esp + 0x14]
mov ebp, edi
jmp case.0x475189.40012
test esi, esi
je 0x475328
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 0xbc]
push esi
call fcn.00470c50
test al, al
jne 0x47524d
cmp dword [esi + 0x5f8], 5
je 0x47524d
test bl, bl
je 0x47524f
mov ebx, dword [esp + 0x14]
mov ecx, dword [ebx + 0xbc]
push 0
call fcn.0046e170
mov ecx, dword [ebx + 0xbc]
push 1
mov edi, eax
call fcn.0046e170
cmp eax, 1
jne 0x47535e
test edi, edi
je 0x475380
jmp 0x47524d
test eax, eax
jne 0x47524d
cmp edi, 1
jne 0x47524d
push eax
call fcn.00490c50
add esp, 4
test al, al
je 0x47524d
mov bl, 1
jmp 0x47524f
mov ecx, dword [esi + 0xbc]
push 0
xor bl, bl
call fcn.0046f950
push 1
push eax
lea ecx, [esp + 0x38]
call fcn.0046f2c0
mov edi, dword [esp + 0x30]
mov dword [esp + 0xb0], 3
test edi, edi
je 0x4755e3
push 0
push 0x5b1bc8
push 0x5b06a4
push 0
push 5
mov ecx, edi
call fcn.0043d7c0
push eax
call fcn.0051b3ef
add esp, 0x14
push 0
push 0x5b1c2c
push 0x5b06a4
push 0
push 6
mov ecx, edi
mov ebx, eax
call fcn.0043d7c0
push eax
call fcn.0051b3ef
add esp, 0x14
test eax, eax
jne 0x4755e1
test ebx, ebx
je 0x475474
push 0xffffffffffffffff
push eax
lea ecx, [esp + 0xa0]
call fcn.004013c0
mov ecx, dword [0x5b9f28]
push 1
push 1
push 0xea
push ecx
mov ecx, eax
mov byte [esp + 0xc0], 4
call fcn.004b5af0
mov edx, dword [esp + 0x48]
push eax
push 0
push edx
push ebp
call fcn.004a8de0
add esp, 0x10
lea ecx, [esp + 0x98]
mov byte [esp + 0xb0], 3
mov dword [esp + 0x98], vtable.cWCS.0
call fcn.0049ee80
call fcn.00461020
cmp eax, 4
je 0x47548a
jmp 0x4755e1
mov ecx, dword [esi + 0xbc]
push edi
call fcn.00470c50
mov bl, al
test bl, bl
je 0x4755e3
mov ecx, dword [esi + 0xbc]
push 0
call fcn.0046e170
mov ecx, dword [esi + 0xbc]
push 1
mov ebx, eax
call fcn.0046e170
cmp eax, 1
jne 0x4754b4
test ebx, ebx
je 0x4754d6
jmp 0x4755e1
test eax, eax
jne 0x4755e1
cmp ebx, 1
jne 0x4755e1
push eax
call fcn.00490c50
add esp, 4
test al, al
je 0x4755e1
mov bl, 1
jmp 0x4755e3
mov ecx, dword [esi + 0xbc]
push 0
call fcn.0046f950
push 1
push eax
lea ecx, [esp + 0x2c]
call fcn.0046f2c0
mov edi, dword [esp + 0x24]
xor bl, bl
test edi, edi
je 0x475511
lea ecx, [edi + 0x138]
call fcn.00429450
test al, al
je 0x475511
mov bl, 1
mov eax, dword [esp + 0x48]
xor edx, edx
test bl, bl
sete dl
push edx
push eax
push ebp
call dword [sym.imp.USER32.dll_EnableMenuItem]
push edi
call fcn.0043e680
add esp, 4
jmp case.0x475189.40012
mov ecx, dword [esi + 0xbc]
push 0
call fcn.0046f950
push 1
push eax
lea ecx, [esp + 0x30]
call fcn.0046f2c0
mov edi, dword [esp + 0x28]
mov ecx, dword [esi + 0xbc]
test edi, edi
push 0
mov dword [esp + 0xb4], 5
setne bl
call fcn.0046e170
test eax, eax
je 0x475573
xor bl, bl
mov edx, dword [esp + 0x48]
xor ecx, ecx
test bl, bl
sete cl
push ecx
push edx
jmp 0x4755f0
mov ecx, dword [esi + 0xbc]
push 0
call fcn.0046f950
push 1
push eax
lea ecx, [esp + 0x3c]
call fcn.0046f2c0
mov edi, dword [esp + 0x34]
xor bl, bl
mov dword [esp + 0xb0], 6
test edi, edi
je 0x4755d0
push 5
mov ecx, edi
call fcn.0043d7c0
test eax, eax
jne 0x4755ce
push 6
mov ecx, edi
call fcn.0043d7c0
test eax, eax
jne 0x4755ce
mov bl, 1
jmp 0x4755d0
xor bl, bl
mov ecx, dword [esi + 0xbc]
push 0
call fcn.0046e170
test eax, eax
je 0x4755e3
xor bl, bl
mov ecx, dword [esp + 0x48]
xor eax, eax
test bl, bl
sete al
push eax
push ecx
push ebp
call dword [sym.imp.USER32.dll_EnableMenuItem]
push edi
mov dword [esp + 0xb4], 0xffffffff
call fcn.0043e680
add esp, 4
jmp case.0x475189.40012
push 0
push 0
call fcn.00402fe0
add esp, 8
mov ecx, eax
call fcn.00499ed0
test eax, eax
sete al
xor edx, edx
test al, al
mov eax, dword [esp + 0x48]
sete dl
push edx
push eax
push ebp
call dword [sym.imp.USER32.dll_EnableMenuItem]
jmp case.0x475189.40012
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0x90]
call fcn.0049eff0
mov dword [esp + 0x88], vtable.cWCSF.0
push 0
push str.BCWipeSvc
mov dword [esp + 0xb8], 7
call fcn.00471730
mov ecx, dword [0x5b81d0]
push eax
push ecx
lea edx, [esp + 0x98]
push edx
call fcn.00403e80
push eax
mov eax, dword [esp + 0x60]
push 0
push eax
push ebp
call fcn.004a8de0
add esp, 0x24
lea ecx, [esp + 0x88]
mov dword [esp + 0xb0], 0xffffffff
mov dword [esp + 0x88], vtable.cWCS.0
call fcn.0049ee80
jmp case.0x475189.40012
push 0
push eax
push ebp
call dword [sym.imp.USER32.dll_EnableMenuItem]
jmp case.0x475189.40012
push 1
push 0
push 0
call fcn.00402a40
add esp, 0xc
test al, al
jne case.0x475189.40012
mov ecx, dword [esp + 0x48]
push 1
push ecx
push ebp
call dword [sym.imp.USER32.dll_EnableMenuItem]
jmp case.0x475189.40012
push 0
push eax
push ebp
call fcn.004a8ac0
add esp, 0xc
mov edi, dword [esp + 0xbc]
lea edx, [esp + 0x38]
push edx
push 1
push edi
push ebp
call dword [sym.imp.USER32.dll_GetMenuItemInfoW]
test eax, eax
jne 0x4750b0
xor eax, eax
mov ecx, dword [esp + 0xa8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret 0x10