Function at 0x5800a0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x2c
mov eax, dword [esp + 0x48]
mov ebx, dword [esp + 0x40]
mov edi, dword [esp + 0x44]
test eax, eax
je 0x580490
cmp byte [eax], 0x31
jne 0x580490
cmp dword [esp + 0x4c], 0x38
jne 0x580490
test ebx, ebx
je 0x580273
mov eax, dword [ebx + 0x20]
mov dword [ebx + 0x18], 0
test eax, eax
je 0x580460
mov esi, dword [ebx + 0x24]
test esi, esi
je 0x580480
cmp edi, 0xffffffff
je 0x580280
cmp edi, 9
ja 0x580273
mov dword [esp + 8], 0x16c4
mov dword [esp + 4], 1
mov edx, dword [ebx + 0x28]
mov dword [esp], edx
call eax
test eax, eax
mov esi, eax
je 0x5804c1
mov dword [ebx + 0x1c], eax
mov dword [eax], ebx
mov dword [eax + 4], 0x2a
mov dword [eax + 0x18], 1
mov dword [eax + 0x1c], 0
mov dword [eax + 0x30], 0xf
mov dword [eax + 0x2c], 0x8000
mov dword [eax + 0x34], 0x7fff
mov dword [eax + 0x50], 0xf
mov dword [eax + 0x4c], 0x8000
mov dword [eax + 0x54], 0x7fff
mov dword [eax + 0x58], 5
mov dword [esp + 8], 2
mov dword [esp + 4], 0x8000
mov eax, dword [ebx + 0x28]
mov dword [esp], eax
call dword [ebx + 0x20]
mov dword [esi + 0x38], eax
mov dword [esp + 8], 2
mov eax, dword [esi + 0x2c]
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x28]
mov dword [esp], eax
call dword [ebx + 0x20]
mov dword [esi + 0x40], eax
mov dword [esp + 8], 2
mov eax, dword [esi + 0x4c]
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x28]
mov dword [esp], eax
call dword [ebx + 0x20]
mov dword [esi + 0x16c0], 0
mov dword [esi + 0x44], eax
mov dword [esi + 0x169c], 0x4000
mov dword [esp + 8], 4
mov dword [esp + 4], 0x4000
mov eax, dword [ebx + 0x28]
mov dword [esp], eax
call dword [ebx + 0x20]
mov edx, dword [esi + 0x169c]
mov dword [esi + 8], eax
lea ecx, [edx*4]
mov dword [esi + 0xc], ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
je 0x5804a0
mov ebp, dword [esi + 0x40]
test ebp, ebp
je 0x5804a0
mov ecx, dword [esi + 0x44]
test ecx, ecx
je 0x5804a0
test eax, eax
je 0x5804a0
mov byte [esi + 0x24], 8
mov ebp, dword [ebx + 0x20]
mov ecx, edx
lea edx, [edx + edx*2]
and ecx, 0xfffffffe
mov dword [esi + 0x84], edi
add ecx, eax
mov dword [esi + 0x88], 0
add eax, edx
test ebp, ebp
mov dword [esi + 0x16a4], ecx
mov dword [esi + 0x1698], eax
je 0x580273
mov edi, dword [ebx + 0x24]
test edi, edi
je 0x580273
mov esi, dword [ebx + 0x1c]
test esi, esi
je 0x580273
cmp ebx, dword [esi]
je 0x580290
mov eax, 0xfffffffe
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
ret
mov edi, 6
jmp 0x580106
mov edx, dword [esi + 4]
cmp edx, 0x2a
lea ecx, [edx - 0x5b]
setne al
mov edi, eax
lea eax, [edx - 0x39]
and eax, 0xffffffef
setne byte [esp + 0x1f]
cmp edx, 0x45
setne al
cmp ecx, 0x16
mov ebp, eax
mov eax, 1
jbe 0x580404
and edi, ebp
cmp edx, 0x29a
setne dl
and edx, edi
test byte [esp + 0x1f], dl
je 0x5802d6
test al, al
jne 0x580273
mov eax, dword [esi + 8]
mov dword [ebx + 0x14], 0
mov dword [ebx + 8], 0
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x2c], 2
mov dword [esi + 0x14], 0
mov dword [esi + 0x10], eax
mov eax, dword [esi + 0x18]
test eax, eax
js 0x580420
cmp eax, 2
je 0x580433
cmp eax, 1
sbb edx, edx
and edx, 0x47
add edx, 0x2a
mov dword [esi + 4], edx
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], 0
call sym._adler32
mov dword [ebx + 0x30], eax
mov dword [esi + 0x28], 0
mov dword [esp], esi
xor esi, esi
call sym.__tr_init
mov ebx, dword [ebx + 0x1c]
mov eax, dword [ebx + 0x2c]
mov edx, dword [ebx + 0x44]
add eax, eax
mov dword [ebx + 0x3c], eax
mov eax, dword [ebx + 0x4c]
add eax, 0x7fffffff
lea ecx, [eax + eax]
mov word [edx + eax*2], si
mov dword [esp], edx
mov dword [esp + 4], 0
mov dword [esp + 8], ecx
call sym._memset
mov eax, dword [ebx + 0x84]
mov dword [ebx + 0x6c], 0
mov dword [ebx + 0x5c], 0
mov dword [ebx + 0x74], 0
mov dword [ebx + 0x16b4], 0
mov dword [ebx + 0x78], 2
lea eax, [eax + eax*2]
mov dword [ebx + 0x60], 2
mov dword [ebx + 0x68], 0
mov dword [ebx + 0x48], 0
shl eax, 2
lea edx, [eax + 0x723740]
movzx ecx, word [eax + 0x723742]
movzx eax, word [eax + 0x723740]
mov dword [ebx + 0x8c], eax
movzx eax, word [edx + 4]
mov dword [ebx + 0x80], ecx
mov dword [ebx + 0x90], eax
movzx eax, word [edx + 6]
mov dword [ebx + 0x7c], eax
add esp, 0x2c
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, 0x401001
shr eax, cl
and eax, 1
xor eax, 1
and eax, 1
jmp 0x5802bf
neg eax
mov edx, 0x2a
cmp eax, 2
mov dword [esi + 0x18], eax
jne 0x58031e
mov dword [esi + 4], 0x39
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], 0
call sym._crc32
jmp 0x58033d
mov esi, dword [ebx + 0x24]
mov dword [ebx + 0x20], sym._zcalloc
mov eax, sym._zcalloc
mov dword [ebx + 0x28], 0
test esi, esi
jne 0x5800f4
nop
mov dword [ebx + 0x24], sym._zcfree
jmp 0x5800f4
add esp, 0x2c
mov eax, 0xfffffffa
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [str.insufficient_memory]
mov dword [esi + 4], 0x29a
mov dword [ebx + 0x18], eax
mov dword [esp], ebx
call sym._deflateEnd
mov eax, 0xfffffffc
jmp 0x580278
mov eax, 0xfffffffc
jmp 0x580278