Function at 0x423430
Capabilities:
Link many functions at runtime

Disassembly:
sub esp, 0x5d0
mov eax, dword [0x4a3f4c]
xor eax, esp
mov dword [esp + 0x5cc], eax
push ebx
mov ebx, dword [esp + 0x5d8]
push ebp
mov eax, ebx
push edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x423453
sub eax, edx
lea eax, [eax + eax + 2]
push eax
call fcn.0045be8e
mov ebp, eax
mov eax, ebx
add esp, 4
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x423470
sub eax, edx
push eax
push ebp
push 0xffffffffffffffff
push ebx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push str.apphelp.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
jne 0x4234b7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.error__d_loading_apphelp.dll_n
push 0x4a6630
call fcn.0045a121
add esp, 0xc
jmp 0x423802
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.SdbOpenDatabase
push edi
call esi
push str.SdbInitDatabase
push edi
mov dword [0x4a65ec], eax
call esi
push str.SdbCloseDatabase
push edi
mov dword [0x4a65f0], eax
call esi
push str.SdbGetFirstChild
push edi
mov dword [0x4a65f4], eax
call esi
push str.SdbGetNextChild
push edi
mov dword [0x4a65f8], eax
call esi
push str.SdbGetTagFromTagID
push edi
mov dword [0x4a65fc], eax
call esi
push str.SdbTagToString
push edi
mov dword [0x4a6600], eax
call esi
push str.SdbGetStringTagPtr
push edi
mov dword [0x4a6604], eax
call esi
push str.SdbReadDWORDTag
push edi
mov dword [0x4a660c], eax
call esi
push str.SdbReadQWORDTag
push edi
mov dword [0x4a6610], eax
call esi
push str.SdbOpenApphelpResourceFile
push edi
mov dword [0x4a6614], eax
call esi
push str.SdbGetBinaryTagData
push edi
mov dword [0x4a661c], eax
call esi
push str.SdbGetTagDataSize
push edi
mov dword [0x4a6620], eax
call esi
push str.SdbGetMatchingExe
push edi
mov dword [0x4a6624], eax
call esi
push str.SdbReleaseMatchingExe
push edi
mov dword [0x4a6628], eax
call esi
cmp dword [0x4a6628], 0
mov dword [0x4a662c], eax
jne 0x4235a2
push ebx
push str.Unsupported_Shim_DB_n
push 0x4a6630
call fcn.0045a121
add esp, 0xc
jmp 0x4237fa
push 0
push 0x80030000
call dword [0x4a65f0]
mov dword [esp + 0x10], eax
test eax, eax
jne 0x4235d5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Cant_initialize_shims_database:_err_d_n
push 0x4a6630
call fcn.0045a121
add esp, 0xc
jmp 0x423801
lea ecx, [esp + 0x14]
push ecx
push 0
push 0
push 0
push ebp
push 0
call dword [0x4a6628]
push ebx
test eax, eax
jne 0x423605
push str.No_Shim_found_for_file:__s_n
push 0x4a6630
call fcn.0045a121
add esp, 0xc
jmp 0x4237fa
push str.Shim_found_for_file:__s_n
push 0x4a6630
call fcn.0045a121
mov eax, dword [esp + 0xe0]
push 0x400
lea edx, [esp + 0x1ec]
push edx
push eax
call fcn.00423350
mov edx, dword [esp + 0xec]
lea ecx, [esp + 0x1f4]
push ecx
push edx
push 0x4a6630
push str._sFlags:_0x_x:__s_n
push 0x4a6630
call fcn.0045a121
mov eax, dword [esp + 0xe4]
add esp, 0x2c
test eax, eax
je 0x423678
push eax
push 0x4a6630
push str._sAppHelp_Message:_0x_x_n
push 0x4a6630
call fcn.0045a121
add esp, 0x10
xor esi, esi
cmp dword [esp + 0xbc], esi
jbe 0x4236e1
mov eax, dword [esp + esi*4 + 0x14]
push eax
push 0x4a6630
push str._sExe_Shim:_0x_x_
push 0x4a6630
call fcn.0045a121
mov edx, dword [esp + esi*4 + 0x64]
push 0x400
lea ecx, [esp + 0x1f0]
push ecx
push edx
call fcn.00423350
mov ecx, dword [esp + esi*4 + 0x70]
lea eax, [esp + 0x1f8]
push eax
push ecx
push 0x4a6630
push str._sFlags:_0x_x:__s_n
push 0x4a6630
call fcn.0045a121
inc esi
add esp, 0x30
cmp esi, dword [esp + 0xbc]
jb 0x423683
xor esi, esi
cmp dword [esp + 0xc0], esi
jbe 0x423719
lea esp, [esp]
mov edx, dword [esp + esi*4 + 0x94]
push edx
push 0x4a6630
push str._sLayer_Shim:_0x_x_n
push 0x4a6630
call fcn.0045a121
inc esi
add esp, 0x10
cmp esi, dword [esp + 0xc0]
jb 0x4236f0
mov ecx, dword [esp + 0xb4]
push 0x400
lea eax, [esp + 0x1e0]
push eax
push ecx
call fcn.00423350
mov eax, dword [esp + 0xc0]
lea edx, [esp + 0x1e8]
push edx
push eax
push 0x4a6630
push str._sLayer_Flags:_0x_x:__s_n
push 0x4a6630
call fcn.0045a121
mov ecx, dword [esp + 0xf8]
push ecx
push 0x4a6630
push str._sCustomSDBMap:_0x_x_n
push 0x4a6630
call fcn.0045a121
add esp, 0x30
lea esi, [esp + 0xea]
mov ebp, 0x10
lea ebx, [esi - 0xe]
push 0x49371c
push ebx
call fcn.00423230
add esp, 8
test eax, eax
jne 0x4237e2
movzx edx, byte [esi + 1]
movzx eax, byte [esi]
movzx ecx, byte [esi - 1]
push edx
movzx edx, byte [esi - 2]
push eax
movzx eax, byte [esi - 3]
push ecx
movzx ecx, byte [esi - 4]
push edx
movzx edx, byte [esi - 5]
push eax
movzx eax, byte [esi - 6]
push ecx
movzx ecx, word [esi - 8]
push edx
movzx edx, word [esi - 0xa]
push eax
mov eax, dword [ebx]
push ecx
push edx
push eax
push 0x4a6630
push str._sShim_Database:__8.8X__4.4X__4.4X__2.2X_2.2X_2.2X_2.2X_2.2X_2.2X_2.2X_2.2X_n
push 0x4a6630
call fcn.0045a121
add esp, 0x38
add esi, 0x10
sub ebp, 1
jne 0x423782
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push ecx
push edx
call dword [0x4a662c]
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop esi
mov ecx, dword [esp + 0x5d8]
pop edi
pop ebp
pop ebx
xor ecx, esp
mov eax, 0x4a6630
call fcn.0045a1dd
add esp, 0x5d0
ret