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

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x2c
mov edi, dword [esp + 0x50]
mov eax, dword [esp + 0x44]
mov edx, dword [esp + 0x58]
mov esi, dword [esp + 0x40]
mov ebx, dword [esp + 0x48]
mov ecx, dword [esp + 0x5c]
mov dword [esp + 0x18], edi
mov edi, dword [esp + 0x54]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x1c], edi
test edx, edx
je 0x407d80
cmp byte [edx], 0x31
setne dl
cmp ecx, 0x38
setne cl
or dl, cl
mov ebp, edx
jne 0x407d80
test esi, esi
je 0x407d70
mov edx, dword [esi + 0x20]
mov dword [esi + 0x18], 0
test edx, edx
je 0x407d50
mov ecx, dword [esi + 0x24]
test ecx, ecx
je 0x407d40
mov edi, dword [esp + 0x14]
mov ecx, 6
cmp edi, 0xffffffff
cmovne ecx, edi
mov dword [esp + 0x14], ecx
test eax, eax
js 0x407d28
mov edi, 1
cmp eax, 0xf
jg 0x407d10
mov ecx, dword [esp + 0x18]
sub ecx, 1
cmp ecx, 8
ja 0x407d70
lea ecx, [eax - 8]
cmp ecx, 7
ja 0x407d70
cmp ebx, 8
jne 0x407d70
cmp dword [esp + 0x14], 9
ja 0x407d70
cmp dword [esp + 0x1c], 4
ja 0x407d70
cmp eax, 8
jne 0x407b99
mov ecx, ebp
test cl, cl
jne 0x407d70
cmp eax, 8
mov ecx, 9
mov dword [esp + 8], 0x16c4
cmovne ecx, eax
mov dword [esp + 4], 1
mov eax, dword [esi + 0x28]
mov ebp, ecx
mov dword [esp], eax
call edx
mov ebx, eax
test eax, eax
je 0x407da7
mov dword [esi + 0x1c], eax
mov ecx, ebp
mov edx, dword [esp + 0x18]
mov dword [eax + 0x18], edi
mov edi, 1
mov dword [eax + 0x30], ebp
mov dword [eax], esi
mov dword [eax + 4], 0x2a
mov dword [eax + 0x1c], 0
mov eax, edi
shl eax, cl
lea ecx, [edx + 7]
add edx, 9
mov dword [ebx + 0x2c], eax
mov ebp, eax
lea eax, [eax - 1]
mov dword [ebx + 0x34], eax
mov eax, edi
shl eax, cl
mov dword [ebx + 0x50], ecx
mov dword [ebx + 0x4c], eax
sub eax, 1
mov dword [ebx + 0x54], eax
mov eax, 0xaaaaaaab
mul edx
shr edx, 1
mov dword [ebx + 0x58], edx
mov dword [esp + 4], ebp
mov dword [esp + 8], 2
mov eax, dword [esi + 0x28]
mov dword [esp], eax
call dword [esi + 0x20]
mov dword [ebx + 0x38], eax
mov dword [esp + 8], 2
mov eax, dword [ebx + 0x2c]
mov dword [esp + 4], eax
mov eax, dword [esi + 0x28]
mov dword [esp], eax
call dword [esi + 0x20]
mov dword [ebx + 0x40], eax
mov dword [esp + 8], 2
mov eax, dword [ebx + 0x4c]
mov dword [esp + 4], eax
mov eax, dword [esi + 0x28]
mov dword [esp], eax
call dword [esi + 0x20]
mov edx, dword [esp + 0x18]
mov dword [ebx + 0x16c0], 0
mov dword [ebx + 0x44], eax
lea ecx, [edx + 6]
shl edi, cl
mov dword [ebx + 0x169c], edi
mov dword [esp + 8], 4
mov dword [esp + 4], edi
mov eax, dword [esi + 0x28]
mov dword [esp], eax
call dword [esi + 0x20]
mov edx, dword [ebx + 0x169c]
mov ebp, dword [ebx + 0x38]
mov dword [ebx + 8], eax
lea ecx, [edx*4]
mov dword [ebx + 0xc], ecx
test ebp, ebp
je 0x407d90
mov edi, dword [ebx + 0x40]
test edi, edi
je 0x407d90
mov ecx, dword [ebx + 0x44]
test ecx, ecx
je 0x407d90
test eax, eax
je 0x407d90
add eax, edx
mov byte [ebx + 0x24], 8
mov dword [ebx + 0x1698], eax
lea eax, [edx + edx*2 - 3]
mov dword [ebx + 0x16a4], eax
mov eax, dword [esp + 0x14]
mov dword [ebx + 0x84], eax
mov eax, dword [esp + 0x1c]
mov dword [ebx + 0x88], eax
mov dword [esp + 0x40], esi
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
jmp sym._deflateReset
sub eax, 0x10
mov ebp, 1
mov edi, 2
jmp 0x407b4f
cmp eax, 0xfffffff1
jl 0x407d70
neg eax
mov ebp, 1
xor edi, edi
jmp 0x407b4f
mov dword [esi + 0x24], sym._zcfree
jmp 0x407b26
mov dword [esi + 0x20], sym._zcalloc
mov edx, sym._zcalloc
mov dword [esi + 0x28], 0
jmp 0x407b1b
mov eax, 0xfffffffe
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, 0xfffffffa
jmp 0x407d75
mov eax, dword [str.insufficient_memory]
mov dword [ebx + 4], 0x29a
mov dword [esi + 0x18], eax
mov dword [esp], esi
call sym._deflateEnd
mov eax, 0xfffffffc
jmp 0x407d75