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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4686b0
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 0x40b3d6
cmp byte [edi + 0x48], 0
je 0x40b3d6
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x40b3c6
lea eax, [edi + 0x44]
push eax
call ecx
push dword [edi + 0x40]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, edi
call fcn.0040b2f0
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.00411320
mov esi, eax
test esi, esi
js 0x40b5cc
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x40b40e
lea esi, [eax + 1]
jmp 0x40b5cc
push 1
dec eax
push eax
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0x28]
call fcn.00409520
push 1
push 0x47abf8
mov byte [ebp - 4], 1
push dword [eax + 0x10]
push ecx
mov ecx, eax
call fcn.0040aeb0
test eax, eax
setne bl
mov byte [ebp - 4], 0
cmp dword [ebp - 0x44], 8
jb 0x40b44e
push dword [ebp - 0x58]
call fcn.0044d639
add esp, 4
test bl, bl
je 0x40b461
push 1
push 0x47abf8
lea ecx, [ebp - 0x28]
call fcn.004092c0
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x40b46d
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_SetDllDirectoryW]
push 0x47b26c
lea edx, [ebp - 0x28]
lea ecx, [ebp - 0x40]
call fcn.0040b640
mov eax, dword [ebp - 0x40]
add esp, 4
cmp dword [ebp - 0x2c], 8
jae 0x40b493
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x40b4a9
mov esi, 1
jmp 0x40b5a7
cmp dword [ebp - 0x2c], 8
mov eax, dword [ebp - 0x40]
jae 0x40b4b5
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [edi + 0x40], eax
test eax, eax
je 0x40b5a2
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 0x40b5a7
mov esi, 0x485
cmp dword [ebp - 0x2c], 8
jb 0x40b5b8
push dword [ebp - 0x40]
call fcn.0044d639
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 0x40b5dd
push dword [ebp - 0x28]
call fcn.0044d639
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.0044c32d
mov esp, ebp
pop ebp
ret