Function at 0x41e610
Capabilities:
Link many functions at runtime

Disassembly:
sub esp, 0x5d0
mov eax, dword [0x4946c0]
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 0x41e633
sub eax, edx
lea eax, [eax + eax + 2]
push eax
call fcn.004525be
mov ebp, eax
mov eax, ebx
add esp, 4
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x41e650
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 0x41e697
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.error__d_loading_apphelp.dll_n
push 0x496bc0
call fcn.00450b6c
add esp, 0xc
jmp 0x41e9e2
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.SdbOpenDatabase
push edi
call esi
push str.SdbInitDatabase
push edi
mov dword [0x496b7c], eax
call esi
push str.SdbCloseDatabase
push edi
mov dword [0x496b80], eax
call esi
push str.SdbGetFirstChild
push edi
mov dword [0x496b84], eax
call esi
push str.SdbGetNextChild
push edi
mov dword [0x496b88], eax
call esi
push str.SdbGetTagFromTagID
push edi
mov dword [0x496b8c], eax
call esi
push str.SdbTagToString
push edi
mov dword [0x496b90], eax
call esi
push str.SdbGetStringTagPtr
push edi
mov dword [0x496b94], eax
call esi
push str.SdbReadDWORDTag
push edi
mov dword [0x496b9c], eax
call esi
push str.SdbReadQWORDTag
push edi
mov dword [0x496ba0], eax
call esi
push str.SdbOpenApphelpResourceFile
push edi
mov dword [0x496ba4], eax
call esi
push str.SdbGetBinaryTagData
push edi
mov dword [0x496bac], eax
call esi
push str.SdbGetTagDataSize
push edi
mov dword [0x496bb0], eax
call esi
push str.SdbGetMatchingExe
push edi
mov dword [0x496bb4], eax
call esi
push str.SdbReleaseMatchingExe
push edi
mov dword [0x496bb8], eax
call esi
cmp dword [0x496bb8], 0
mov dword [0x496bbc], eax
jne 0x41e782
push ebx
push str.Unsupported_Shim_DB_n
push 0x496bc0
call fcn.00450b6c
add esp, 0xc
jmp 0x41e9da
push 0
push 0x80030000
call dword [0x496b80]
mov dword [esp + 0x10], eax
test eax, eax
jne 0x41e7b5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Cant_initialize_shims_database:_err_d_n
push 0x496bc0
call fcn.00450b6c
add esp, 0xc
jmp 0x41e9e1
lea ecx, [esp + 0x14]
push ecx
push 0
push 0
push 0
push ebp
push 0
call dword [0x496bb8]
push ebx
test eax, eax
jne 0x41e7e5
push str.No_Shim_found_for_file:__s_n
push 0x496bc0
call fcn.00450b6c
add esp, 0xc
jmp 0x41e9da
push str.Shim_found_for_file:__s_n
push 0x496bc0
call fcn.00450b6c
mov eax, dword [esp + 0xe0]
push 0x400
lea edx, [esp + 0x1ec]
push edx
push eax
call fcn.0041e530
mov edx, dword [esp + 0xec]
lea ecx, [esp + 0x1f4]
push ecx
push edx
push 0x496bc0
push str._sFlags:_0x_x:__s_n
push 0x496bc0
call fcn.00450b6c
mov eax, dword [esp + 0xe4]
add esp, 0x2c
test eax, eax
je 0x41e858
push eax
push 0x496bc0
push str._sAppHelp_Message:_0x_x_n
push 0x496bc0
call fcn.00450b6c
add esp, 0x10
xor esi, esi
cmp dword [esp + 0xbc], esi
jbe 0x41e8c1
mov eax, dword [esp + esi*4 + 0x14]
push eax
push 0x496bc0
push str._sExe_Shim:_0x_x_
push 0x496bc0
call fcn.00450b6c
mov edx, dword [esp + esi*4 + 0x64]
push 0x400
lea ecx, [esp + 0x1f0]
push ecx
push edx
call fcn.0041e530
mov ecx, dword [esp + esi*4 + 0x70]
lea eax, [esp + 0x1f8]
push eax
push ecx
push 0x496bc0
push str._sFlags:_0x_x:__s_n
push 0x496bc0
call fcn.00450b6c
inc esi
add esp, 0x30
cmp esi, dword [esp + 0xbc]
jb 0x41e863
xor esi, esi
cmp dword [esp + 0xc0], esi
jbe 0x41e8f9
lea esp, [esp]
mov edx, dword [esp + esi*4 + 0x94]
push edx
push 0x496bc0
push str._sLayer_Shim:_0x_x_n
push 0x496bc0
call fcn.00450b6c
inc esi
add esp, 0x10
cmp esi, dword [esp + 0xc0]
jb 0x41e8d0
mov ecx, dword [esp + 0xb4]
push 0x400
lea eax, [esp + 0x1e0]
push eax
push ecx
call fcn.0041e530
mov eax, dword [esp + 0xc0]
lea edx, [esp + 0x1e8]
push edx
push eax
push 0x496bc0
push str._sLayer_Flags:_0x_x:__s_n
push 0x496bc0
call fcn.00450b6c
mov ecx, dword [esp + 0xf8]
push ecx
push 0x496bc0
push str._sCustomSDBMap:_0x_x_n
push 0x496bc0
call fcn.00450b6c
add esp, 0x30
lea esi, [esp + 0xea]
mov ebp, 0x10
lea ebx, [esi - 0xe]
push 0x48565c
push ebx
call fcn.0041e410
add esp, 8
test eax, eax
jne 0x41e9c2
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 0x496bc0
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 0x496bc0
call fcn.00450b6c
add esp, 0x38
add esi, 0x10
sub ebp, 1
jne 0x41e962
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push ecx
push edx
call dword [0x496bbc]
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, 0x496bc0
call fcn.00450c28
add esp, 0x5d0
ret