Function at 0x40b350
Capabilities:
Check if file exists
Get file attributes
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x468640
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x4a5590]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
cmp dword [edi + 0x40], 0
je 0x40b3a6
cmp byte [edi + 0x48], 0
je 0x40b3a6
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x40b396
lea eax, [edi + 0x44]
push eax
call ecx
push dword [edi + 0x40]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, edi
call fcn.0040b2c0
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], eax
call fcn.004112f0
mov esi, eax
test esi, esi
js 0x40b59c
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x40b3de
lea esi, [eax + 1]
jmp 0x40b59c
push 1
dec eax
push eax
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0x28]
call fcn.00409510
push 1
push 0x47ac4c
mov byte [ebp - 4], 1
push dword [eax + 0x10]
push ecx
mov ecx, eax
call fcn.0040ae80
test eax, eax
setne bl
mov byte [ebp - 4], 0
cmp dword [ebp - 0x44], 8
jb 0x40b41e
push dword [ebp - 0x58]
call fcn.0044d5f9
add esp, 4
test bl, bl
je 0x40b431
push 1
push 0x47ac4c
lea ecx, [ebp - 0x28]
call fcn.004092b0
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x40b43d
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_SetDllDirectoryW]
push 0x47b2a4
lea edx, [ebp - 0x28]
lea ecx, [ebp - 0x40]
call fcn.0040b610
mov eax, dword [ebp - 0x40]
add esp, 4
cmp dword [ebp - 0x2c], 8
jae 0x40b463
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x40b479
mov esi, 1
jmp 0x40b577
cmp dword [ebp - 0x2c], 8
mov eax, dword [ebp - 0x40]
jae 0x40b485
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [edi + 0x40], eax
test eax, eax
je 0x40b572
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.ZAppApi_Initialize
push eax
call esi
push str.ZAppApi_Terminate
push dword [edi + 0x40]
mov dword [edi], eax
call esi
push str.ZAppApi_Update
push dword [edi + 0x40]
mov dword [edi + 4], eax
call esi
push str.ZAppApi_Delete
push dword [edi + 0x40]
mov dword [edi + 8], eax
call esi
push str.ZAppApi_StartTransaction
push dword [edi + 0x40]
mov dword [edi + 0xc], eax
call esi
push str.ZAppApi_CommitTransaction
push dword [edi + 0x40]
mov dword [edi + 0x10], eax
call esi
push str.ZAppApi_CancelTransaction
push dword [edi + 0x40]
mov dword [edi + 0x14], eax
call esi
push str.ZAppApi_RegisterCallback
push dword [edi + 0x40]
mov dword [edi + 0x18], eax
call esi
push str.ZAppApi_UnregisterCallback
push dword [edi + 0x40]
mov dword [edi + 0x1c], eax
call esi
push str.ZAppApi_ReportActionResult
push dword [edi + 0x40]
mov dword [edi + 0x20], eax
call esi
push str.ZAppApi_RegisterActionCallback
push dword [edi + 0x40]
mov dword [edi + 0x24], eax
call esi
push str.ZAppApi_ReportActionProgress
push dword [edi + 0x40]
mov dword [edi + 0x28], eax
call esi
push str.ZAppApi_ReportPossibleActions
push dword [edi + 0x40]
mov dword [edi + 0x2c], eax
call esi
push str.ZAppApi_UnregisterActionCallback
push dword [edi + 0x40]
mov dword [edi + 0x30], eax
call esi
push str.ZAppApi_RegisterReloadCallback
push dword [edi + 0x40]
mov dword [edi + 0x34], eax
call esi
push str.ZAppApi_UnregisterReloadCallback
push dword [edi + 0x40]
mov dword [edi + 0x38], eax
call esi
mov dword [edi + 0x3c], eax
mov byte [edi + 0x48], 1
xor esi, esi
jmp 0x40b577
mov esi, 0x485
cmp dword [ebp - 0x2c], 8
jb 0x40b588
push dword [ebp - 0x40]
call fcn.0044d5f9
add esp, 4
xor eax, eax
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
cmp dword [ebp - 0x14], 8
jb 0x40b5ad
push dword [ebp - 0x28]
call fcn.0044d5f9
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0044c2ed
mov esp, ebp
pop ebp
ret