Function at 0x522bae
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x21c
mov eax, dword [0x5f2e68]
xor eax, esp
mov dword [esp + 0x218], eax
push ebx
push esi
push edi
mov esi, 0x103
push esi
xor edi, edi
lea eax, [esp + 0x15]
push edi
push eax
mov byte [esp + 0x1c], 0
call fcn.005306b0
add esp, 0xc
push esi
lea eax, [esp + 0x11d]
push edi
push eax
mov byte [esp + 0x124], 0
call fcn.005306b0
add esp, 0xc
cmp dword [0x710a4c], edi
jne 0x522ee1
mov esi, str.zLib.dll
push esi
push 0x54f4f0
mov ebx, 0x104
lea eax, [esp + 0x120]
push ebx
push eax
call fcn.004ce4e5
add esp, 0x10
push esi
push edi
push edi
call fcn.00493154
pop ecx
pop ecx
push eax
mov edi, 0x553c34
push edi
lea eax, [esp + 0x1c]
push ebx
push eax
call fcn.004ce4e5
add esp, 0x14
push 1
lea eax, [esp + 0x14]
push eax
push eax
lea eax, [esp + 0x124]
push eax
call fcn.00431953
add esp, 0x10
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebx, eax
test ebx, ebx
jne 0x522d54
push esi
push eax
push eax
call fcn.00493030
pop ecx
pop ecx
push eax
push edi
mov ebx, 0x104
lea eax, [esp + 0x124]
push ebx
push eax
call fcn.004ce4e5
add esp, 0x14
push esi
push 0
push 0
call fcn.00493154
pop ecx
pop ecx
push eax
push edi
lea eax, [esp + 0x1c]
push ebx
push eax
call fcn.004ce4e5
add esp, 0x14
push 1
lea eax, [esp + 0x14]
push eax
push eax
lea eax, [esp + 0x124]
push eax
call fcn.00431953
add esp, 0x10
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebx, eax
test ebx, ebx
jne 0x522d54
push esi
push eax
push eax
call fcn.00493030
pop ecx
pop ecx
push eax
push edi
lea eax, [esp + 0x1c]
push 0x104
push eax
call fcn.004ce4e5
add esp, 0x14
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebx, eax
test ebx, ebx
jne 0x522d47
lea edi, [esp + 0x10]
call fcn.00432263
test eax, eax
mov eax, edi
je 0x522d33
push str._GetLastError_
push eax
push str.:7:InitGZDLL___FAILED:_LoadLibrary___s___FAILED:_The_DLL_exists_but_could_not_be_loaded:__s
call fcn.0042b70b
add esp, 0xc
jmp 0x522d40
push eax
push str.:7:InitGZDLL___FAILED:_LoadLibrary___s___FAILED:_The_DLL_could_not_be_found_
call fcn.0042b70b
pop ecx
pop ecx
xor eax, eax
jmp 0x522ee4
push esi
push str.:7:InitGZDLL___had_to_load__s_directly_from_the_source_
call fcn.0042b70b
pop ecx
pop ecx
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.gzopen
push ebx
call esi
test eax, eax
mov dword [0x710a2c], eax
jne 0x522d76
push str.:7:InitGZDLL___FAILED:_gzopen___could_not_be_loaded.
call fcn.0042b70b
pop ecx
push str.gzread
push ebx
call esi
test eax, eax
mov dword [0x710a30], eax
jne 0x522d92
push str.:7:InitGZDLL___FAILED:_gzread___could_not_be_loaded.
call fcn.0042b70b
pop ecx
push str.gzwrite
push ebx
call esi
test eax, eax
mov dword [0x710a34], eax
jne 0x522dae
push str.:7:InitGZDLL___FAILED:_gzwrite___could_not_be_loaded.
call fcn.0042b70b
pop ecx
push str.gzclose
push ebx
call esi
test eax, eax
mov dword [0x710a38], eax
jne 0x522dca
push str.:7:InitGZDLL___FAILED:_gzclose___could_not_be_loaded.
call fcn.0042b70b
pop ecx
push str.gzseek
push ebx
call esi
test eax, eax
mov dword [0x710a3c], eax
jne 0x522de6
push str.:7:InitGZDLL___FAILED:_gzseek___could_not_be_loaded.
call fcn.0042b70b
pop ecx
push str.gzputs
push ebx
call esi
test eax, eax
mov dword [0x6060a4], eax
jne 0x522e02
push str.:7:InitGZDLL___FAILED:_gzputs___could_not_be_loaded.
call fcn.0042b70b
pop ecx
push str.gzgets
push ebx
call esi
test eax, eax
mov dword [0x6060ac], eax
jne 0x522e1e
push str.:7:InitGZDLL___FAILED:_gzgets___could_not_be_loaded.
call fcn.0042b70b
pop ecx
push str.gzputc
push ebx
call esi
test eax, eax
mov dword [0x605824], eax
jne 0x522e3a
push str.:7:InitGZDLL___FAILED:_gzputc___could_not_be_loaded.
call fcn.0042b70b
pop ecx
push str.gzgetc
push ebx
call esi
test eax, eax
mov dword [0x6060a8], eax
jne 0x522e56
push str.:7:InitGZDLL___FAILED:_gzgetc___could_not_be_loaded.
call fcn.0042b70b
pop ecx
push str.compress2
push ebx
call esi
test eax, eax
mov dword [0x6060b0], eax
jne 0x522e72
push str.:7:InitGZDLL___FAILED:_compress2___could_not_be_loaded.
call fcn.0042b70b
pop ecx
push str.compressBound
push ebx
call esi
test eax, eax
mov dword [0x605ddc], eax
jne 0x522e8e
push str.:7:InitGZDLL___FAILED:_compressBound___could_not_be_loaded.
call fcn.0042b70b
pop ecx
push str.uncompress
push ebx
call esi
test eax, eax
mov dword [0x6060a0], eax
jne 0x522eaa
push str.:7:InitGZDLL___FAILED:_uncompress___could_not_be_loaded.
call fcn.0042b70b
pop ecx
push str.gzprintf
push ebx
call esi
test eax, eax
mov dword [0x710a40], eax
jne 0x522ec6
push str.:7:InitGZDLL___FAILED:_gzprintf___could_not_be_loaded.
call fcn.0042b70b
pop ecx
lea eax, [esp + 0x10]
push eax
mov ecx, 0x104
mov eax, 0x710a50
mov dword [0x710a4c], ebx
call fcn.004ccc3f
pop ecx
xor eax, eax
inc eax
mov ecx, dword [esp + 0x224]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.005317e7
mov esp, ebp
pop ebp
ret