Function at 0x43a020
Capabilities:
Accept command line arguments
Enumerate gui resources
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb30
push ebx
push esi
mov esi, ecx
xor ebx, ebx
mov byte [ebp - 1], 1
cmp dword [esi + 4], ebx
jne 0x43a040
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x18]
push edi
cmp eax, ebx
je 0x43a0a4
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x43a082
cmp dword [esi + 4], 3
jne 0x43a26e
cmp dword [esi + 0x1c], ebx
jne 0x43a07a
mov eax, dword [esi + 0x18]
cmp eax, ebx
je 0x43a07a
mov edi, dword [sym.imp.USER32.dll_GetParent]
nop
push eax
mov dword [esi + 0x1c], eax
call edi
cmp eax, ebx
jne 0x43a070
mov dword [esi + 0x20], ebx
jmp 0x43a26e
cmp dword [esi + 4], 3
jne 0x43a09b
push ebx
push ebx
push ebx
push ebx
push str.Specified_window_not_found
call fcn.004200b0
jmp 0x43a268
mov dword [esi + 0x20], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
push 0x228
mov dword [ebp - 0x330], 0x22c
push ebx
cmp dword [esi + 0x14], ebx
je 0x43a0fc
lea eax, [ebp - 0x32c]
push eax
call fcn.004b03e0
mov edi, dword [esi + 0x14]
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp edi, eax
je 0x43a0ee
lea ecx, [ebp - 0x330]
push ecx
push edi
call fcn.004ad200
add esp, 8
test al, al
je 0x43a0ee
mov eax, dword [esi + 0x14]
jmp 0x43a137
push ebx
push ebx
push ebx
push ebx
push str.Invalid_parent_process_specified
jmp 0x43a260
lea edx, [ebp - 0x32c]
push edx
call fcn.004b03e0
add esp, 0xc
lea eax, [ebp - 0x330]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call fcn.004ad200
add esp, 8
test al, al
je 0x43a257
mov eax, dword [ebp - 0x318]
cmp eax, ebx
je 0x43a257
push eax
push 0x439340
call dword [sym.imp.USER32.dll_EnumWindows]
mov eax, dword [esi + 0x1c]
cmp eax, ebx
jne 0x43a16b
push ebx
push ebx
push 0x114
push str.Cant_find_appropriate_parent_window__n_nContinue_in_normal_mode_
call fcn.00420020
add esp, 0x10
cmp eax, 6
jne 0x43a1ab
mov dword [esi + 4], ebx
jmp 0x43a26b
push eax
mov ecx, esi
call fcn.004393c0
mov edi, eax
cmp edi, ebx
je 0x43a1b8
mov ecx, dword [0x50b3a4]
mov dword [ecx + 0x12260], ebx
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push str.__cmd
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
cmp eax, ebx
je 0x43a19e
lea ebx, [eax + 0xc]
mov ecx, dword [0x50b39c]
push ebx
push edi
call fcn.00411b40
or eax, 0xffffffff
pop edi
mov dword [esi + 0x18], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [esi + 0x1c]
push edx
mov ecx, esi
call fcn.00439450
mov edi, 2
cmp dword [esi + 0x18], ebx
je 0x43a1df
cmp dword [esi + 0x20], ebx
jne 0x43a26e
cmp dword [esi + 4], edi
jne 0x43a26e
push 0xfe
lea ecx, [ebp - 0x102]
xor eax, eax
push ebx
push ecx
mov word [ebp - 0x104], ax
call fcn.004b03e0
add esp, 0xc
cmp byte [ebp - 1], bl
je 0x43a217
lea edx, [ebp - 0x104]
push edx
mov ecx, esi
mov byte [ebp - 1], bl
call fcn.00439e70
test al, al
jne 0x43a1c8
lea eax, [ebp - 0x104]
push eax
lea ecx, [ebp - 0xb30]
push str._sCant_find_appropriate_shell_window__nUnrecognized_layout_of_the_Explorer._n_nContinue_in_normal_mode_
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
push ebx
push ebx
lea edx, [ebp - 0xb30]
push 0x114
push edx
call fcn.00420020
add esp, 0x1c
cmp eax, 6
jne 0x43a1ab
mov dword [esi + 4], ebx
mov dword [esi + 0x1c], ebx
jmp 0x43a26b
push ebx
push ebx
push ebx
push ebx
push str.GetProcessInfo_GetCurrentProcessId____failed
call fcn.004200b0
mov dword [esi + 4], ebx
add esp, 0x14
mov dword [esi + 0x18], ebx
mov eax, dword [esi + 0x18]
cmp eax, ebx
jne 0x43a282
pop edi
mov dword [esi + 4], ebx
mov dword [esi + 0x1c], ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [esi + 0x14]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
lea edi, [esi + 0x4e]
push edi
push 0x105
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 3
jle 0x43a2b7
cmp word [esi + eax*2 + 0x4c], 0x5c
jne 0x43a2b7
xor edx, edx
mov word [esi + eax*2 + 0x4c], dx
mov eax, dword [esi + 0x18]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret