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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4b1955
mov eax, dword fs:[0]
push eax
sub esp, 0x3d4
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4d25ac]
xor eax, esp
push eax
lea eax, [esp + 0x3e8]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esp + 0x18], ebx
xor eax, eax
mov word [esp + 0x20], ax
mov ebp, 7
push 0x19
mov eax, str.MigrationTool.exe_started
lea esi, [esp + 0x20]
mov dword [esp + 0x38], ebp
mov dword [esp + 0x34], ebx
call fcn.00401f30
mov ecx, esi
push ecx
mov dword [esp + 0x3f4], ebx
call fcn.00403780
mov edi, 8
add esp, 4
mov dword [esp + 0x3f0], 0xffffffff
cmp dword [esp + 0x34], edi
jb 0x402be2
mov edx, dword [esp + 0x20]
push edx
call fcn.00491101
add esp, 4
lea esi, [esp + 0x54]
call fcn.00401a10
mov ecx, 1
mov dword [esp + 0x3f0], ecx
mov dword [esp + 0x18], ecx
cmp byte [eax + 1], bl
jne 0x402c3d
lea esi, [esp + 0x34c]
call fcn.00401a10
mov dword [esp + 0x3f0], 2
mov dword [esp + 0x18], 3
cmp byte [eax], bl
jne 0x402c3d
lea esi, [esp + 0x184]
call fcn.00401a10
mov dword [esp + 0x18], ebp
mov byte [esp + 0x17], 1
cmp byte [eax + 2], bl
je 0x402c41
mov byte [esp + 0x17], bl
test byte [esp + 0x18], 4
je 0x402c59
and dword [esp + 0x18], 0xfffffffb
lea esi, [esp + 0x184]
call fcn.00401950
test byte [esp + 0x18], 2
je 0x402c71
and dword [esp + 0x18], 0xfffffffd
lea esi, [esp + 0x34c]
call fcn.00401950
mov dword [esp + 0x3f0], 0xffffffff
test byte [esp + 0x18], 1
je 0x402c8c
lea esi, [esp + 0x54]
call fcn.00401950
cmp byte [esp + 0x17], bl
je 0x402cdb
xor eax, eax
mov word [esp + 0x20], ax
push 0x2a
mov eax, str.MigrationTool___no_flags_were_sent._quits.
lea esi, [esp + 0x20]
mov dword [esp + 0x38], ebp
mov dword [esp + 0x34], ebx
call fcn.00401f30
mov ecx, esi
push ecx
mov dword [esp + 0x3f4], 3
call fcn.00403780
add esp, 4
cmp dword [esp + 0x34], edi
jb 0x40316f
mov edx, dword [esp + 0x20]
push edx
jmp 0x403167
lea esi, [esp + 0x54]
call fcn.00401a10
mov al, byte [eax + 2]
mov byte [esp + 0x17], al
call fcn.00401950
cmp byte [esp + 0x17], bl
je 0x402d95
xor ecx, ecx
push 0x2f
mov eax, str.MigrationTool___trying_to_copy_toolbar_broker..
lea esi, [esp + 0x20]
mov dword [esp + 0x38], ebp
mov dword [esp + 0x34], ebx
mov word [esp + 0x24], cx
call fcn.00401f30
mov edx, esi
push edx
mov dword [esp + 0x3f4], 4
call fcn.00403780
or esi, 0xffffffff
add esp, 4
mov dword [esp + 0x3f0], esi
cmp dword [esp + 0x34], edi
jb 0x402d4c
mov eax, dword [esp + 0x20]
push eax
call fcn.00491101
add esp, 4
call fcn.004024c0
test al, al
jne 0x402d95
mov eax, str.MigrationTool___copying_toolbar_broker_failed.
lea ecx, [esp + 0x1c]
call fcn.00401fe0
lea ecx, [esp + 0x1c]
push ecx
mov dword [esp + 0x3f4], 5
call fcn.00403780
add esp, 4
mov dword [esp + 0x3f0], esi
cmp dword [esp + 0x34], edi
jb 0x402d95
mov edx, dword [esp + 0x20]
push edx
call fcn.00491101
add esp, 4
lea esi, [esp + 0x54]
call fcn.00401a10
mov al, byte [eax]
mov byte [esp + 0x17], al
call fcn.00401950
cmp byte [esp + 0x17], bl
je 0x402f9c
push str.Ieframe.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
cmp esi, ebx
je 0x402ddd
push str.IERefreshElevationPolicy
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x402dd6
call eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor ecx, ecx
push 0x3f
mov eax, str.MigrationTool___trying_to_bckup_data_and_unregister_if_needed..
lea esi, [esp + 0x20]
mov dword [esp + 0x38], ebp
mov dword [esp + 0x34], ebx
mov word [esp + 0x24], cx
call fcn.00401f30
mov edx, esi
push edx
mov dword [esp + 0x3f4], 6
call fcn.00403780
add esp, 4
mov dword [esp + 0x3f0], 0xffffffff
cmp dword [esp + 0x34], edi
jb 0x402e30
mov eax, dword [esp + 0x20]
push eax
call fcn.00491101
add esp, 4
call fcn.00402870
lea esi, [esp + 0xec]
call fcn.00401a10
add eax, 0x44
push eax
lea esi, [esp + 0x220]
mov dword [esp + 0x3f4], ebp
call fcn.00401a10
mov byte [esp + 0x3f4], 8
movzx ecx, byte [eax + 1]
push ecx
lea esi, [esp + 0x2bc]
call fcn.00401a10
lea esi, [esp + 0x18c]
mov byte [esp + 0x3f8], 9
call fcn.00401a10
lea esi, [esp + 0x354]
mov byte [esp + 0x3f8], 0xa
call fcn.00401a10
sub esp, 0x1c
mov byte [esp + 0x414], 0xb
mov ecx, esp
mov dword [esp + 0x3c], esp
push 0xffffffffffffffff
xor edx, edx
mov dword [ecx + 0x18], ebp
mov dword [ecx + 0x14], ebx
add eax, 0x28
push ebx
mov word [ecx + 4], dx
call fcn.00401c20
lea esi, [esp + 0x78]
mov byte [esp + 0x414], 0xc
call fcn.00401a10
mov byte [esp + 0x414], 0xd
movzx eax, byte [eax + 0x24]
push eax
mov byte [esp + 0x418], 0xe
call fcn.004123c0
add esp, 0x28
mov edi, eax
call fcn.00401950
lea esi, [esp + 0x34c]
call fcn.00401950
lea esi, [esp + 0x184]
call fcn.00401950
lea esi, [esp + 0x2b4]
call fcn.00401950
lea esi, [esp + 0x21c]
call fcn.00401950
lea esi, [esp + 0xec]
mov dword [esp + 0x3f0], 0xffffffff
call fcn.00401950
xor ecx, ecx
push 0x2e
mov eax, str.MigrationTool___HandleInitializeByIGear_result
lea esi, [esp + 0x20]
mov dword [esp + 0x38], ebp
mov dword [esp + 0x34], ebx
mov word [esp + 0x24], cx
call fcn.00401f30
mov ecx, edi
mov dword [esp + 0x3f0], 0xf
call fcn.00403270
mov dword [esp + 0x3f0], 0xffffffff
cmp dword [esp + 0x34], 8
jb 0x402f8d
mov edx, dword [esp + 0x20]
push edx
call fcn.00491101
add esp, 4
push 1
call fcn.00413400
add esp, 4
mov edi, 8
lea esi, [esp + 0xec]
call fcn.00401a10
mov al, byte [eax + 1]
mov byte [esp + 0x17], al
call fcn.00401950
cmp byte [esp + 0x17], bl
je 0x403127
xor ecx, ecx
push 0x22
mov eax, str.MigrationTool___trying_to_export..
lea esi, [esp + 0x20]
mov dword [esp + 0x38], ebp
mov dword [esp + 0x34], ebx
mov word [esp + 0x24], cx
call fcn.00401f30
mov edx, esi
push edx
mov dword [esp + 0x3f4], 0x10
call fcn.00403780
add esp, 4
mov dword [esp + 0x3f0], 0xffffffff
cmp dword [esp + 0x34], edi
jb 0x403011
mov eax, dword [esp + 0x20]
push eax
call fcn.00491101
add esp, 4
push str.Ieframe.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
cmp esi, ebx
je 0x40303b
push str.IERefreshElevationPolicy
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x403034
call eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea esi, [esp + 0x2b4]
call fcn.00401a10
mov edi, eax
lea esi, [esp + 0x21c]
mov dword [esp + 0x3f0], 0x11
call fcn.00401a10
mov ebp, eax
lea esi, [esp + 0xec]
mov byte [esp + 0x3f0], 0x12
call fcn.00401a10
add ebp, 0x7c
add eax, 0x44
push ebp
lea ecx, [edi + 0x60]
push eax
mov byte [esp + 0x3f8], 0x13
call fcn.00418f70
add esp, 8
mov byte [esp + 0x18], al
call fcn.00401950
lea esi, [esp + 0x21c]
call fcn.00401950
or edi, 0xffffffff
lea esi, [esp + 0x2b4]
mov dword [esp + 0x3f0], edi
call fcn.00401950
xor ecx, ecx
push 0x2e
mov eax, str.MigrationTool___HandleInitializeByIGear_result
lea esi, [esp + 0x20]
mov dword [esp + 0x38], 7
mov dword [esp + 0x34], ebx
mov word [esp + 0x24], cx
call fcn.00401f30
mov dword [esp + 0x3f0], 0x14
mov edx, dword [esp + 0x18]
push edx
mov eax, esi
push eax
call fcn.00403190
add esp, 8
mov dword [esp + 0x3f0], edi
cmp dword [esp + 0x34], 8
jb 0x403115
mov ecx, dword [esp + 0x20]
push ecx
call fcn.00491101
add esp, 4
push 2
call fcn.00413400
mov ebp, 7
add esp, 4
lea edi, [ebp + 1]
xor edx, edx
push 0x15
mov eax, str.MigrationTool.exe_end
lea esi, [esp + 0x3c]
mov dword [esp + 0x54], ebp
mov dword [esp + 0x50], ebx
mov word [esp + 0x40], dx
call fcn.00401f30
mov eax, esi
push eax
mov dword [esp + 0x3f4], 0x15
call fcn.00403780
add esp, 4
cmp dword [esp + 0x50], edi
jb 0x40316f
mov ecx, dword [esp + 0x3c]
push ecx
call fcn.00491101
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x3e8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret